Skip to main content

A python package to automatically generate API documents for Python modules.

Project description

Sophia-doc

A python package to automatically generate API documents for Python modules.

Introduction

Sophia is a python package to automatically generate API documents for Python modules.

It's a lot like sphinx, but it only focuses on generating markdown documentation.

It does not support PEP 224 attribute docstring, because the PEP was rejected, and have to use ast module to support it, which brings additional complexity to this project.

Install

pip install sophia-doc

Quickstart

sophia_doc "sophia_doc" -o ./doc

Usage

Command line:

usage: sophia_doc [-h] [-o OUTPUT_DIR] [--docstring-style DOCSTRING_STYLE] [--anchor-extend | --no-anchor-extend] [--overwrite | --no-overwrite]
                   [--exclude-module-name | --no-exclude-module-name]
                   module

Sophia_doc is a python package to automatically generate API documents for Python modules

positional arguments:
  module                Python module names.

options:
  -h, --help            show this help message and exit
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        The directory to write document. (default: doc)
  --docstring-style DOCSTRING_STYLE
                        Docstring style the python module used. (default: auto)
  --anchor-extend, --no-anchor-extend
                        Add anchor to markdown title. (default: False)
  --overwrite, --no-overwrite
                        Overwrite any file in output directory. (default: False)
  --exclude-module-name, --no-exclude-module-name
                        Write file to path which exclude module name. (default: False)

License

MIT © st1020

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

sophia_doc-0.1.10.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

sophia_doc-0.1.10-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file sophia_doc-0.1.10.tar.gz.

File metadata

  • Download URL: sophia_doc-0.1.10.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sophia_doc-0.1.10.tar.gz
Algorithm Hash digest
SHA256 ffeea87ca63df1a017fcf56f96beb435879bf953073ee1a0f4b6d0380f04033e
MD5 bb54b4dc0cd4220d4d066b49d0f5a7d2
BLAKE2b-256 6fc9bbecbbaa67ddba6958de55a35b92280c4ff71cad3a09ba7722d33734b191

See more details on using hashes here.

File details

Details for the file sophia_doc-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: sophia_doc-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sophia_doc-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc3aa5980915e6194fd5537848ab436b66f61fe1b0a1a38af1a5b0c0192451a
MD5 c448f51c45dff8949d92ca6977085928
BLAKE2b-256 f57c115e8c7efa2f44c17fa6cf17274c183823f702fa474fc40d5380d932e15a

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