Skip to main content

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


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.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

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

docspec-2.2.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file docspec-2.2.2.tar.gz.

File metadata

  • Download URL: docspec-2.2.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for docspec-2.2.2.tar.gz
Algorithm Hash digest
SHA256 c772c6facfce839176b647701082c7a22b3d22d872d392552cf5d65e0348c919
MD5 ccc8c781134914e69be55b2c90501d2d
BLAKE2b-256 8bfe1ad244d0ca186b5386050ec30dfd59bd3dbeea5baec33ca861dd43b922e6

See more details on using hashes here.

File details

Details for the file docspec-2.2.2-py3-none-any.whl.

File metadata

  • Download URL: docspec-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for docspec-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 854d25401e7ec2d155b0c1e001e25819d16b6df3a7575212a7f340ae8b00122e
MD5 76620c545d2c1da128439f56fb861720
BLAKE2b-256 38571011f2e88743a818cced9a95d54200ba6a05decaf43fd91d8c6ed9f6470d

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