Skip to main content

Library for automatic docstrings check

Project description

fulldoc

fulldoc is a Python docstring content checker focused on completeness and consistency.

It validates that docstrings are not only present, but also contain the required structured content for your public and internal API.

What it checks

fulldoc enforces:

  • full argument documentation for all callable parameters, even when no Args / Attributes section is present
  • Attributes section validation for classes and data containers
  • docstrings for private and protected entities, so internal APIs are documented for other developers

Supported docstring styles

  • Google
  • reStructuredText

What makes fulldoc different

Most docstring tools only check whether a docstring exists.

fulldoc checks whether the docstring is actually complete.

That includes:

  • required parameter descriptions
  • attribute documentation
  • internal API documentation
  • consistent parsing of common docstring formats

Requirements

fulldoc is designed for Python projects that want stricter documentation standards.

It is especially useful when you want to enforce documentation for:

  • public functions and classes
  • protected members
  • private members
  • dataclasses and other attribute-heavy classes
  • library code maintained by multiple developers

Status codes

fulldoc reports findings using status codes.

Main status groups

  • D — docstring structure or content issue
  • DOC — missing, incomplete, or invalid documentation
  • N — naming or entity-related issue
  • F — parser or formatting support code used for internal parsing only

Example meanings

Code Meaning
D... documentation rule violation
DOC... docstring content problem
N... naming or entity classification issue
F... parsing helper / internal formatting-related code

Exact code meanings depend on the rule set configured in your project.

Installation

pip install fulldoc
uv add fulldoc --optional lint

Usage

Run fulldoc against your project source tree from the root directory:

fulldoc

Or integrate it into your CI pipeline:

- name: Check docstrings
  run: fulldoc

Or you can help debug library errors running it from python file:

from fulldoc import ProjectParser

ProjectParser().check()

Rules enforced by fulldoc

Arguments

All callable arguments must be documented.

This includes cases where:

  • the docstring has no Args / Attributes section
  • the section exists but is incomplete
  • some parameters are documented and others are missing

Attributes

Class attributes are checked against the docstring Attributes section.

fulldoc can detect missing documentation for class state and related fields.

Private and protected members

fulldoc can require docstrings for internal APIs such as:

  • protected members like _name
  • private members like __name

This helps teams keep internal code understandable and maintainable.

Examples

Google style

def add_user(name: str, age: int) -> None:
    """Add a user.

    Args:
        name: User name.
        age: User age.
    """

reStructuredText style

def add_user(name: str, age: int) -> None:
    """Add a user.

    :param name: User name.
    :param age: User age.
    """

Notes

  • fulldoc is strict by design.
  • It is intended for teams that want documentation quality checks, not just docstring presence checks.
  • Internal and protected code can be included in the documentation policy.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fulldoc-0.0.5.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fulldoc-0.0.5-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file fulldoc-0.0.5.tar.gz.

File metadata

  • Download URL: fulldoc-0.0.5.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fulldoc-0.0.5.tar.gz
Algorithm Hash digest
SHA256 bbbfeb40b2bd3107de194b3be865103f675bdde65a10aad4fe9c9eaccddf4a96
MD5 4a0b733ce5b52d5ade347698cec1312b
BLAKE2b-256 3038bd0190d34a406884ecf871174babe9d9601fa810f11d2cd5ce1736685323

See more details on using hashes here.

File details

Details for the file fulldoc-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: fulldoc-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for fulldoc-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 62bef7c6d8c004b567be37ef15d3f32e10a8c84b11ba6c4ef75aa1a2cf783010
MD5 7b7f4fa5fa7d53534a81a25504ee2c77
BLAKE2b-256 5bac1992564abaf0802d9cdabce84b45bf72de41db9f62ecea163165d0832dc9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page