Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sphinxcontrib-openapi

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sphinxcontrib-openapi

OpenAPI (fka Swagger) spec renderer for Sphinx

  • 0.8.4
  • Source
  • PyPI
  • Socket score

Maintainers
2

===================== sphinxcontrib-openapi

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.

.. code:: bash

$ python3 -m pip install sphinxcontrib-openapi

Usage

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

.. code:: python

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

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

.. code:: restructuredtext

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

  • Documentation: https://sphinxcontrib-openapi.readthedocs.org/
  • Source: https://github.com/sphinx-contrib/openapi
  • Bugs: https://github.com/sphinx-contrib/openapi/issues

.. _Sphinx: https://www.sphinx-doc.org/en/master/ .. _OpenAPI: https://github.com/OAI/OpenAPI-Specification .. _sphinxcontrib-httpdomain: https://sphinxcontrib-httpdomain.readthedocs.io/

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc