Skip to main content

a new way to do python code documentation

Project description

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


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



pip install archives

Run the Linter

# run archives (on itself!)
archives archives/

# 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


Tests can be run with tox!

# run tests

# only one version of python
tox -e py36


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

Download files

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

Source Distribution

archives-0.12.tar.gz (14.3 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page