Skip to main content

No project description provided

Project description

pysciidoc

pysciidoc reads python docstrings and converts them to formatted asciidoc. It is meant to be used in conjunction with antora to automatically generate the documentation for the python package's API.

Find full documentation at https://glencoe.github.io/pysciidoc/

Features

  • automatically generate nav.adoc file for antora
  • show type hints in documentation
  • show default values for function arguments

Installation

pip install 'git+https://github.com/glencoe/pysciidoc.git'

Usage

pysciidoc --api-output-dir <path> --nav-file <path> <package-name>

Example using pysciidoc with antora to generate pysciidoc's API documentation

pysciidoc --api-output-dir docs/modules/api/pages \
  --nav-file docs/modules/api/nav.adoc pysciidoc

Todo

  • automatically format and link google doc style
    • examples
    • attributes
    • return values
  • resolve type hints for <factory> from dataclass signatures

Not planned

  • support for annotated attributes and variables
    • not supported because there is no PEP specifying how to annotate these

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

pysciidoc-0.1.0.tar.gz (116.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysciidoc-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file pysciidoc-0.1.0.tar.gz.

File metadata

  • Download URL: pysciidoc-0.1.0.tar.gz
  • Upload date:
  • Size: 116.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pysciidoc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c94b0a5a21adb572760f74f22e3097165d1fb592b7faec75e5999c148a074435
MD5 3b4264f16520f91e610ab52f82f7d4a6
BLAKE2b-256 b735a6b4191b6e63659121770c88fa19689b5a3d8d75a62aaff96e7f506cb2a1

See more details on using hashes here.

File details

Details for the file pysciidoc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pysciidoc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pysciidoc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e04d1cd79a0051289cb04f105c344655474ab2bdd1934d3a939b5c9fc568470
MD5 6f37e07d30657fe63f876e6283198fb6
BLAKE2b-256 984cab0f4163ed77f9543355347af569a6fbdb29034373c94d10d0a12f66c74a

See more details on using hashes here.

Supported by

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