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.11.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.11-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sophia_doc-0.1.11.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.11.tar.gz
Algorithm Hash digest
SHA256 afa35aa428fa37c6dbedfd2965315a7fefa457fdacd4b9dc95bedbd06832c4aa
MD5 ddca8ce0230cd3370b8b1dc3c415f8ee
BLAKE2b-256 93f8514fab4a5505adb7fccec1068f0dc5f3790a0238c0af07c769791a0db9a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sophia_doc-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5da9227612fbbbff4fb34b05afbadf1672168e768053086056fbadd9c5c064b9
MD5 55dbc41a8c1be7b89d76b8b3919b20c9
BLAKE2b-256 f17d30d5df13b77398d6c17017130366346371c82f0e1e60be33b32aa9678db1

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