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

python -m unittest

Usage

from openapi_markdown.generator import to_markdown

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

to_markdown(apiFile, outputFile)
  • If you want to use your own template, creates 'templates' directory and put api_doc_template.md.j2 file in it.
  • You can change templates directory by passing it as the 3rd argument of to_markdown.

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

Uploaded Source

Built Distribution

openapi_markdown-0.2.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file openapi_markdown-0.2.1.tar.gz.

File metadata

  • Download URL: openapi_markdown-0.2.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for openapi_markdown-0.2.1.tar.gz
Algorithm Hash digest
SHA256 962824707758cb2888bbb01ffb5a09735b1e3509ac83994f2e40083ad78094d9
MD5 9652fd4937ae1a3f88d227e99800dd99
BLAKE2b-256 86327dc086801e495e2c76a2f1fe13e4e0f9836bbc7e0a4d470841f75a235128

See more details on using hashes here.

File details

Details for the file openapi_markdown-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openapi_markdown-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0738f17684e6bc09ae155ad0f098a168a038702194a88e39d6771de73c900f9
MD5 e0456ab26c66c41c15717f3cca9bbd82
BLAKE2b-256 7baa8180613609e04f921a5c6953835246a443c1e0c4df89b4e803a9d963c4d4

See more details on using hashes here.

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