Skip to main content

OpenAPI (fka Swagger) spec renderer for Sphinx

Project description

sphinxcontrib-openapi is a Sphinx extension to generate APIs docs from OpenAPI (fka Swagger) spec. It depends on sphinxcontrib-httpdomain that provides an HTTP domain for describing RESTful HTTP APIs, so we don’t need to reinvent the wheel.

$ python3 -m pip install sphinxcontrib-openapi

Usage

Pass sphinxcontrib-openapi to extensions list in Sphinx’s conf.py

extensions = [
   ...
   'sphinxcontrib.openapi',
]

and feel free to use the openapi directive to render OpenAPI specs

.. openapi:: path/to/openapi.yml

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

sphinxcontrib_openapi-0.9.0.tar.gz (95.3 kB view details)

Uploaded Source

Built Distribution

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

sphinxcontrib_openapi-0.9.0-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib_openapi-0.9.0.tar.gz.

File metadata

  • Download URL: sphinxcontrib_openapi-0.9.0.tar.gz
  • Upload date:
  • Size: 95.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for sphinxcontrib_openapi-0.9.0.tar.gz
Algorithm Hash digest
SHA256 c3c445a13c99706d8837b21b78e1caa8be5eb16b8f83a297a1fdf19f1c31d487
MD5 fe4e9de44e8b3d1d5a5677ef51c5be18
BLAKE2b-256 9cd6bec7b89e981cc5ee18ccc5dd966257203bae8ceb893bfa7cc7e44f0df2e0

See more details on using hashes here.

File details

Details for the file sphinxcontrib_openapi-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_openapi-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19037dc091e741b2f84e9c17ff201f70f2ac5c192c883e055bb2d96e9facfbdf
MD5 9c3cad974406ac2e744e34f9e13dd2ad
BLAKE2b-256 323a7c5ec79cee2d9505ef9079fc55cdc866e38aa68241982bf103604013f5c0

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