A simple program and library to auto generate API documentation for Python modules.
Project description
Read Latest Documentation - Browse GitHub Code Repository
pdocs
is a library and a command line program to discover the public
interface of a Python module or package. The pdocs
script can be used to
generate Markdown or HTML of a module's public interface, or it can be used
to run an HTTP server that serves generated HTML for installed modules.
pdocs
is an MIT Licensed fork of pdoc
with the goal of staying true to the original vision
layed out by the projects creator.
NOTE: For most projects, the best way to use pdocs
is using portray.
Features
- Support for documenting data representation by traversing the abstract syntax to find docstrings for module, class and instance variables.
- For cases where docstrings aren't appropriate (like a
namedtuple),
the special variable
__pdocs__
can be used in your module to document any identifier in your public interface. - Usage is simple. Just write your documentation as Markdown. There are no added special syntax rules.
pdocs
respects your__all__
variable when present.pdocs
will automatically link identifiers in your docstrings to its corresponding documentation.- When
pdocs
is run as an HTTP server, external linking is supported between packages. - The
pdocs
HTTP server will cache generated documentation and automatically regenerate it if the source code has been updated. - When available, source code for modules, functions and classes can be viewed in the HTML documentation.
- Inheritance is used when possible to infer docstrings for class members.
The above features are explained in more detail in pdocs's documentation.
pdocs
is compatible with Python 3.6 and newer.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pdocs-1.0.0.tar.gz
.
File metadata
- Download URL: pdocs-1.0.0.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/5.0.0-25-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7abdf8972bd3462f5cdb8801a641d40c856153b1f11c477b190b8383e382ac08 |
|
MD5 | 3128ff0e1cb991b992093dd0da45ef98 |
|
BLAKE2b-256 | e76398213a4ea9106c715faabeaa0de5537e5f88d7dc8cce56ca69892456d956 |
File details
Details for the file pdocs-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pdocs-1.0.0-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/5.0.0-25-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ff94eddeb8bf2bf9b979c4e8f89b4b6d089deb1d1d5d3447a1f62a5d068ea8 |
|
MD5 | f708e6bea15d6482c173242f973d1d83 |
|
BLAKE2b-256 | 774726feaa01d500b8c01fad3717a77e157d7f45746d751d6f1beffa7393d870 |