A simple program and library to auto generate API documentation for Python modules.
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.
- 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
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.
__all__variable when present.
pdocswill automatically link identifiers in your docstrings to its corresponding documentation.
pdocsis run as an HTTP server, external linking is supported between packages.
pdocsHTTP 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.
The following guides should get you up using pdocs in no time:
- Installation - TL;DR: Run
pip3 install pdocswithin your projects virtual environment.
- Command Line Usage - TL;DR: Run
pdocs server YOUR_MODULESto test and
pdocs as_html YOUR_MODULESto generate HTML.
- API Usage - TL;DR: Everything available via the CLI is also easily available programmatically from within Python.
pdocs to help power portray while staying true to the original vision of
pdoc and maintain
MIT license compatibility. In the end I created it to help power better documentation websites for Python projects.
I hope you too find
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pdocs-1.0.1-py3-none-any.whl (32.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size pdocs-1.0.1.tar.gz (29.9 kB)||File type Source||Python version None||Upload date||Hashes View hashes|