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
Installation
The package uses semantic versioning. It means that major versions could include breaking changes.
$ pip install referencer
Documentation
referencer package README.md --in-place
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='## 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.1.5.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file referencer-0.1.5.tar.gz
.
File metadata
- Download URL: referencer-0.1.5.tar.gz
- Upload date:
- Size: 6.0 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 | 7c6d062c9c2bce57c6ed58f65fbcf7b581f8e811ca648726d316e811951f29a8 |
|
MD5 | f9be6f2a5f41aae43cbd36d5deaa8d9a |
|
BLAKE2b-256 | 762c00c02ea7e80f2a3bcbce96fb57bf0520d6cffb8a31eb711260b07058f9cf |
File details
Details for the file referencer-0.1.5-py2.py3-none-any.whl
.
File metadata
- Download URL: referencer-0.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 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 | 536adbdf60bb0be6a939f04289721f4ecb8e80165a2821f170d09bb240c3e912 |
|
MD5 | 763ffb9ded6973cf36725f8413121529 |
|
BLAKE2b-256 | 350977c6a0c578e909b105a00064aaf905d7cd01a84e8031c38569bcfc1b6829 |