Skip to main content

archives: a new way to do python code documentation

image PyPI version Code style: black Python 3.6+ supported Documentation style: archives

archives is a new style of python code documentation, as well as a linter for the documentation itself. It can help you ensure that your docstrings in your classes and functions stay up to date, and that they adequately explain their purpose, arguments, and return value.

Perhaps the archives are incomplete

Features

  • linter for docstrings (work in progress, but usable!)
  • (coming soon) documentation generator

Usage

Installation

pip install archives

Run the Linter

# run archives (on itself!)
archives archives/

# archives.py:846:0: F104 function 'path_empty' missing @ret tag
#
# Impossible! Perhaps your archives are incomplete?
# 1 issues found.

# list tags!
archives --list-tag

# @arg    describe an argument of a function
# @author denote the author of a module/class/function
# @cc     denote the complexity of a function
# @desc   describe a module/class/function
# @link   add a link to the generated documentation
# @nodoc  disable this module/class/function in the documentation
# @nolint disable archives linting in this module/class/function
# @note   add a note to a module/class/function
# @ret    describe the return value of a function
# @todo   tag something as a todo
# @warn   add a warning to a module/class/function

# list rules!
archives --list-rules


# disable rules!
archives --disable M100 .

# different formats for output! defaults to flake8
archives --format pylint archives.py

Testing

Tests can be run with tox!

# run tests
tox

# only one version of python
tox -e py36

Todo

  • more rules
  • better system for multi-check rules
  • more output formats
  • potentially spell-checking inside desc?
  • documentation generator
  • tests

Metadata

Release files for archives 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for archives 0.12
File Size Uploaded Provenance Actions
archives-0.12.tar.gz 14.3 kB Without provenance Details for archives-0.12.tar.gz

Release files / archives-0.12.tar.gz

Download URL archives-0.12.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c8f7a759cd3bd0e34bf75e64ba27800a4d5d9169ceab3676438ca1b6aad3d981
BLAKE2b-256 checksum
How to use checksums
d940ae1743ca8598782fd3bfd64750c3dd98ba7d5fe5a436287b2abf4f42502a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

Security for archives 0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page