Generate a markfown reference from your public API docstrings and add it to your readme
Project description
referencer-py
Generate a markdown reference from your public API docstrings and add it to your readme.
Features
- Uses
pydoc-markdown
under the hood
Getting Started
The package uses semantic versioning. It means that major versions could include breaking changes.
$ pip install referencer
Documentation
referencer package README.md --in-place
API Reference
cli
cli(package, document, **options)
Command-line interface
Usage: referencer [OPTIONS] PACKAGE DOCUMENT
Options:
--in-place [default: False]
--package-pattern TEXT [default: from \.(\w+) import (\w+)]
--document-section TEXT [default: ## Reference]
--version Show the version and exit.
--help Show this message and exit.
generate_document
generate_document(package, document, package_pattern='from \\.(\\w+) import (\\w+)', document_section='## API Reference')
Generate document
generate_reference
generate_reference(package, package_pattern='from \\.(\\w+) import (\\w+)')
Generate reference
Contributing
virtualenv .python -ppython3.7
source .python/bin/activate
make install
make test
Changelog
v0.1
- Initial version
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
referencer-0.2.2.tar.gz
(6.1 kB
view details)
Built Distribution
File details
Details for the file referencer-0.2.2.tar.gz
.
File metadata
- Download URL: referencer-0.2.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d84379773879f0f018e8759b7decd64eed6f39fbed2ffcb601eea7995cec8216 |
|
MD5 | e52ec2a09007dec5024b6ef4aaff6d10 |
|
BLAKE2b-256 | fdd61d4349626e41805b6c8f0758efd2f8d9084a0cba029bd0e0364e2ed2875a |
File details
Details for the file referencer-0.2.2-py2.py3-none-any.whl
.
File metadata
- Download URL: referencer-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c916f305384290c591dfb0113a871d2e868c3c4865a88f103c01997947fb882 |
|
MD5 | 32db98c4a040b4e459a410b5b0975f0c |
|
BLAKE2b-256 | 9b9579c820df173fad0d454b91de97948438e581ac4cafb68297809b1033dfe4 |