Skip to main content

A small Python code parser which allow to generate a basic documentation

Project description

Smalldoc is a small lib which allow to extract your Python documentation in an easy way.

The following documentation of Smalldoc had been generate executing script doc.py


smalldoc

Small module which allow you to extract your docstring documentation in the format of your choice.

parse

def parse(working_path: str, module_name: str, show_private=False) -> dict

Parse your code and docstring then generate a dict with it.

Arguments

Name Type Description
module_name str The name of the module you want to generate dict of your documentation
show_private If True, parser will navigate through your private methode. At False by default.
working_path str The working directory to fetch your module

Return

dict : Dictionnary which contain metadata and doc.

write

def write(module: dict) -> str

Now, allow to generate a single page documentation in markdown using the only on Jinja template available. The dictionary should be generated by parser.

Arguments

Name Type Description
module dict The dict of your module generated by parser.

Return

str : A single page markdown representation of your documentation

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

smalldocpy-0.0.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

smalldocpy-0.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file smalldocpy-0.0.1.tar.gz.

File metadata

  • Download URL: smalldocpy-0.0.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for smalldocpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ba86153afb6ae88a76791391903dc2fd14d6ea180d74daa51b79a746afef5eff
MD5 66ca9b34369b0ba29288f2b7677656bc
BLAKE2b-256 8f57e78ee35dbcc321fbcbacde46823f67f1f7ba16722feb963b1a7a42d22ea7

See more details on using hashes here.

File details

Details for the file smalldocpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: smalldocpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for smalldocpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2e8dc4d8ceae41388ba5f4f081dbeddd158aca55e251e30a9ded7f952716048
MD5 96b5265f6352f1c997dd004a20f6f4e0
BLAKE2b-256 c908a202a3c7b1765394133467ed73b90a9f004db929db8c09bb7411c11c32cb

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