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.4.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file referencer-0.1.4.tar.gz
.
File metadata
- Download URL: referencer-0.1.4.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 | 2c2f1035df24d33e18b8e946691fce61c19e4c98c0230fd2453e3aec5d7639f6 |
|
MD5 | 4d884d477e14b65f89db4ca389aae472 |
|
BLAKE2b-256 | d214e4853d67c2f7e6524f5311f1ceb968d5e6e462e9ce19baa6e704754724d1 |
File details
Details for the file referencer-0.1.4-py2.py3-none-any.whl
.
File metadata
- Download URL: referencer-0.1.4-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 | 64055d6a873af2229f66ed6b689c14a1336f12907beea526b225ad2d40eb52a3 |
|
MD5 | b3806b43019ac9fa9ce23e9ef353537d |
|
BLAKE2b-256 | 39b4ee8b147d97464407a011a310c0936158cb207e3f07f3b2d2b7c8b02ac42e |