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
- generates enhanced ux python classes from the bundled openapi.yaml file
- creates a single combined python file for all generated and common classes
This python package DOES NOT create a python package for the generated artifacts.
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.17.tar.gz
(24.3 kB
view details)
Built Distribution
File details
Details for the file openapiart-0.0.17.tar.gz
.
File metadata
- Download URL: openapiart-0.0.17.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f0d862c6198a25a5e68fc0eac14ff072d2c587e88d764832fae5e10b0293b83 |
|
MD5 | 26c78fff0c110d48f8d4ab0b64d8adb2 |
|
BLAKE2b-256 | 8c8a49299a26ecc518e0cf2c9debbd750cc61c484ee2270e758e2ab2908a0a3d |
File details
Details for the file openapiart-0.0.17-py2.py3-none-any.whl
.
File metadata
- Download URL: openapiart-0.0.17-py2.py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cab8df2c3cb94568894aec6a03d734e8f404beb3bd77a0a294c8d60fd8eb54b7 |
|
MD5 | f03667c5311c77baf90e3b3199991200 |
|
BLAKE2b-256 | 825ba48e12c28bb8c46414f8d3a7d9ed8142a382daac0481e574613b6dc595ec |