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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 962824707758cb2888bbb01ffb5a09735b1e3509ac83994f2e40083ad78094d9 |
|
MD5 | 9652fd4937ae1a3f88d227e99800dd99 |
|
BLAKE2b-256 | 86327dc086801e495e2c76a2f1fe13e4e0f9836bbc7e0a4d470841f75a235128 |
File details
Details for the file openapi_markdown-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: openapi_markdown-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0738f17684e6bc09ae155ad0f098a168a038702194a88e39d6771de73c900f9 |
|
MD5 | e0456ab26c66c41c15717f3cca9bbd82 |
|
BLAKE2b-256 | 7baa8180613609e04f921a5c6953835246a443c1e0c4df89b4e803a9d963c4d4 |