$npx skillfedfor your agent

pydocstringformatter

A tool to automatically format Python docstrings that tries to follow recommendations from PEP 8 and PEP 257.

Worth itPyPI Quality AssuranceReleased Jul 2026172.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pydocstringformatter-1.0.0-py3-none-any.whl
v1.0.0 · released 2026-07-04 · Python >=3.11

Yes. The package is actively maintained, has no dependencies, requires only Python 3.11+, carries no known vulnerabilities, and solves a real problem in code quality enforcement. Install it if your team wants automated, configurable docstring formatting aligned with PEP standards.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.11 or later.
  • Low friction—pure Python wheel with no runtime dependencies.
  • Actively maintained as of 41 days ago with recent commits and a stable release cycle.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

last release 2026-07-04 (41 days) · last repo commit 2026-08-10 · 90 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 172,192 downloads/mo, #10,345 on PyPI

Verify before relying

pip install pydocstringformatter

pydocstringformatter myfile.py

# Or with configuration in pyproject.toml:
[tool.pydocstringformatter]
write = true
style = "pep257"
  • Whether the tool can be integrated into CI/CD pipelines beyond pre-commit hooks.
  • Performance characteristics when run on large codebases or projects with thousands of files.
  • How the tool handles edge cases in docstrings with complex formatting or non-ASCII characters.
Same gist for agents: .md · .json

What it is and what it does

Pydocstringformatter is a command-line tool that reads Python source files and automatically reformats their docstrings to align with PEP 8 and PEP 257 style guidelines. It was created by contributors to the pylint project to address gaps in existing formatters, with a design philosophy that makes some of the more contentious PEP requirements optional rather than mandatory.

The tool handles common docstring issues: fixing quote styles, capitalizing summaries, normalizing whitespace, enforcing period terminators, and aligning multi-line docstrings. It supports multiple style guides simultaneously (e.g., pep257 and numpydoc), reads configuration from pyproject.toml, and integrates with pre-commit workflows. With zero runtime dependencies and active maintenance, it's designed as a lightweight addition to Python development toolchains.

Use it for

  • Enforce consistent docstring formatting across a team or open-source project without manual review.
  • Integrate into CI/CD pipelines via pre-commit hooks to catch docstring style violations before merge.
  • Reformat legacy codebases to meet modern PEP 257 standards in bulk.
  • Configure project-specific docstring rules in pyproject.toml and apply them uniformly.
  • Use as a linting step alongside pylint to maintain documentation quality.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no dependencies, requires only Python 3.11+, carries no known vulnerabilities, and solves a real problem in code quality enforcement. Install it if your team wants automated, configurable docstring formatting aligned with PEP standards.

Install

pydocstringformatter on PyPI

Before you install

Low friction—pure Python wheel with no runtime dependencies. Actively maintained as of 41 days ago with recent commits and a stable release cycle.

Requires Python 3.11 or later.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pydocstringformatter

pydocstringformatter myfile.py

# Or with configuration in pyproject.toml:
[tool.pydocstringformatter]
write = true
style = "pep257"

Verify before relying

  • Whether the tool can be integrated into CI/CD pipelines beyond pre-commit hooks.
  • Performance characteristics when run on large codebases or projects with thousands of files.
  • How the tool handles edge cases in docstrings with complex formatting or non-ASCII characters.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.11
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 41 days since the last release
Last repo commit
First released
Downloads172,192 / month, #10,345 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Implementation :: CPythonTopic :: Software Development :: Quality Assurance

Evidence: pydocstringformatter-1.0.0-py3-none-any.whl

Tags

Capabilities
python docstring formatterpep 257 docstring auto-formatdocstring style checkerautomatic docstring lintingpep 8 compliance tooldocstring formatting cli
Topics
code-qualitydocstring-formattingpep-compliance
PyPI keywords
pythondocstringformat

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pep 257 docstring auto-format”

  • pydocstringformatterAutomatically formats Python docstrings to comply with PEP 8 and PEP…
  • docformatterAutomatically formats Python docstrings to comply with PEP 257…
  • pydocstylepydocstyle is a static analysis tool that checks Python docstrings…

Give your agent the search over MCP, or paste the wish link into any chat.

More Quality Assurance packages

coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
ruff Worth it
PyPI · Python Modules · released Aug 2026

Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.

MITcompiled wheel · 3.7+
316.1Mdownloads / mo
pexpect With conditions
PyPI · Software Development · released Nov 2023

Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.

ISCpure Pythonaging
200.8Mdownloads / mo
black Worth it
PyPI · Python Modules · released May 2026

Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.

MITpure Python · 3.10+
179.9Mdownloads / mo
pytest-xdist Worth it
PyPI · Utilities · released Jul 2025

pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.

Install it if your test suite takes long enough that parallelization would save meaningful time.

MITpure Python · 3.9+
177.1Mdownloads / mo
cfn-lint Worth it
PyPI · Quality Assurance · released Aug 2026

Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.

Install it if you work with CloudFormation templates.

MIT-0pure Python
114.9Mdownloads / mo

See also docformatter · flake8-docstrings · pydocstyle · attributes-doc · docstring-parser · pep8 · docstr-coverage · flake8-rst-docstrings · pdoc3 · pycodestyle