Skip to main content

Generates API documentation from an OpenAPI specification file

Project description

OpenAPI Documentation Generator

This is a Python script that generates API documentation from an OpenAPI specification file.

Requirements

  • Python 3.x
  • json
  • PyYAML
  • openapi-core
  • Jinja2

Development

pip install -r requirement.txt

install a project in editble mode pip install -e ./

run tests - not unit tests

python tests/test.py

Usage

from openapi_markdown.generator import to_markdown

apiFile = "./tests/openapi.json"
outputFile = "api_doc.md"

to_markdown(apiFile, outputFile)

Deploy

python3 -m pip install --upgrade twine
./pypi.sh

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

openapi_markdown-0.0.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

openapi_markdown-0.0.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page