Docspec is a JSON object specification for representing API documentation of programming languages.
Project description
docspec
This Python packages provides
- A library to (de-) serialize Docspec conformat JSON payloads
- A CLI to validate and introspect such payloads
Example:
import docspec, sys
for module in docspec.load_modules(sys.stdin):
module.members = [member for member in module.members if member.docstring]
docspec.dump_module(sys.stdout)
$ docspec module.json --dump-tree
module docspec
| class Location
| | data filename
| | data lineno
| class Decoration
| | data name
# ...
The docspec
Python module requires Python 3.5 or newer.
Copyright © 2020, Niklas Rosenstein
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docspec-2.2.1.tar.gz
(8.6 kB
view details)
Built Distribution
File details
Details for the file docspec-2.2.1.tar.gz
.
File metadata
- Download URL: docspec-2.2.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4854e77edc0e2de40e785e57e95880f7095a05fe978f8b54cef7a269586e15ff |
|
MD5 | 382d0ebbe2e7694e6de59f4b1a691b78 |
|
BLAKE2b-256 | 3c397a71382107445b2cd50c67c6194e3e584f19748a817c3b29e8be8a14f00f |
File details
Details for the file docspec-2.2.1-py3-none-any.whl
.
File metadata
- Download URL: docspec-2.2.1-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7538f750095a9688c6980ff9a4e029a823a500f64bd00b6b4bdb27951feb31cb |
|
MD5 | b494ae66db3892fe188a1c5ef3a9df60 |
|
BLAKE2b-256 | 33aa0c9d71cc9d450afd3993d09835e2910810a45b0703f585e1aee1d9b78969 |