The OpenAPI Artifact Generator Python Package
Project description
OpenAPIArt
The OpenAPIArt
(OpenAPI Artifact Generator) python package does the following:
- bundles individual yaml files into a single file
- post process x- 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
- openapi.yaml
- openapi.json
- openapi.html
- sample.py
and writes them to the output_dir
"""
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.
Modeling guide specific to this package
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.9.tar.gz
(20.0 kB
view hashes)
Built Distribution
Close
Hashes for openapiart-0.0.9-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07b150483d524d0853189b50b7c6c64e58e9ad3e5f8ca7231aa14f0faa77bc45 |
|
MD5 | 7fe3b37459bca3eecf2075bc6df79c23 |
|
BLAKE2b-256 | d7bf339b6147222b4f53989fde5370188aa31fe45d83bb53119712574e34f8b5 |