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
Metadata
Release files for sophia-doc 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sophia_doc-0.1.11.tar.gz | 12.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sophia_doc-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.8 kB
Release files / sophia_doc-0.1.11.tar.gz
| Download URL | sophia_doc-0.1.11.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afa35aa428fa37c6dbedfd2965315a7fefa457fdacd4b9dc95bedbd06832c4aa
|
|
BLAKE2b-256 checksum How to use checksums |
93f8514fab4a5505adb7fccec1068f0dc5f3790a0238c0af07c769791a0db9a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / sophia_doc-0.1.11-py3-none-any.whl
| Download URL | sophia_doc-0.1.11-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5da9227612fbbbff4fb34b05afbadf1672168e768053086056fbadd9c5c064b9
|
|
BLAKE2b-256 checksum How to use checksums |
f17d30d5df13b77398d6c17017130366346371c82f0e1e60be33b32aa9678db1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|