Skip to main content

Generate a markfown reference from your public API docstrings and add it to your readme

Project description

referencer-py

Travis Coveralls PyPi Github

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


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.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

referencer-0.2.0-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file referencer-0.2.0.tar.gz.

File metadata

  • Download URL: referencer-0.2.0.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

Hashes for referencer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 71bf07714a95dc9133219bdc89e8a4a80f687f07d53708e53214d0e35793233e
MD5 623ca00eac6d57660cacaefb1caf0eda
BLAKE2b-256 17ace61d5dd5908381e8968e41fa6449f0b20a03d29f29b8ff5b41674c7d1234

See more details on using hashes here.

File details

Details for the file referencer-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: referencer-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 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

Hashes for referencer-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0443a9753fc519524e59ee44da03615bdb4382cf01afc956ad05bfb860267889
MD5 7762beddfcfca45c7a0cd992b388f087
BLAKE2b-256 8d7596fff48372a1cf08065b5783adcbd18c97bf6f47c3dd5a0bee7d9adedfe0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page