The OpenAPI Artifact Generator Python Package
Project description
OpenAPIArt
The OpenAPIArt
(OpenAPI Artifact Generator) python package does the following:
- pre-processes OpenAPI yaml files according to the MODELGUIDE
- using the path keyword bundles all dependency OpenAPI yaml files into a single openapi.yaml file
- post-processes any MODELGUIDE extensions
- validates the bundled openapi.yaml file
Using the validated openapi.yaml file it then:
- generates a static redocly documentation file
- generates a
protobuf
file - generates protobuf based python files
- generates an enhanced ux python module
Getting started
Install the package
pip install openapiart
Generate artifacts from OpenAPI files
import openapiart
"""
The following command produces these artifacts:
- ./artifacts/openapi.yaml
- ./artifacts/openapi.json
- ./artifacts/openapi.html
- ./artifacts/sample/__init__.py
- ./artifacts/sample/sample.py
"""
openapiart.OpenApiArt(
api_files=['./tests/api/api.yaml'],
python_module_name='sample',
output_dir='./artifacts'
)
Specifications
This repository is based on the OpenAPI specification which is a standard, language-agnostic interface to RESTful APIs.
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
openapiart-0.0.22.tar.gz
(25.4 kB
view details)
Built Distribution
File details
Details for the file openapiart-0.0.22.tar.gz
.
File metadata
- Download URL: openapiart-0.0.22.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a75f4346157c67aa73572de271efdd4d7edd3f33244dd45c12b2f5431019d364 |
|
MD5 | 68d112aea8af7e467c79886b33438f6b |
|
BLAKE2b-256 | 6c09263d7cd407f5879d3dae945e45e06115a2d734e2660052db82271c85eca0 |
File details
Details for the file openapiart-0.0.22-py2.py3-none-any.whl
.
File metadata
- Download URL: openapiart-0.0.22-py2.py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5d1f8288bf06ce3c2c6ac154753871fb422289ede8bc57c3856fa09f8e32707 |
|
MD5 | caf69fece641d7850696b5edc8b0d369 |
|
BLAKE2b-256 | 9a788156dfc6707745271b299acd7ab36793f132a7c980043bcbeecaf476f759 |