OpenAPI Client Generator
Project description
OpenAPI Client Generator
This CLI utility allows you to generate Python client packages from OpenAPI v3 specifications. The project aims at supporting any generic valid specification.
Features
works on Python 3.8 and above;
generates clients with type hints to aid static analysis of higher level interfaces that would use the clients;
supports streaming endpoints.
Installation
You can install it from PyPI:
pip install openapi-client-generator
Afterwards, use a CLI utility called openapi-client-generator:
$ openapi-client-generator --help
usage: openapi-client-generator [-h] [-V] {gen} ...
OpenAPI Client Generator
optional arguments:
-h, --help show this help message and exit
-V, --version show program's version number and exit
sub-commands:
valid sub-commands
{gen} additional help
gen Generate client for a provided schema (JSON, YAML).
Contributing
Cloning this repo
The proper way to clone this repo is:
git clone --recurse-submodules <repo-url> <local-project-root>
cd <local-project-root>
# for showing submodule status with `git status`
git config status.submodulesummary 1
# for logging submodule diff with `git diff`
git config diff.submodule log
Test framework
The project uses Nix for bootstrapping its dev environment.
You can run existing test suite with
$ nix-shell --run "make test"
Documentation
Documentation is hosted on ReadTheDocs: https://openapi-client-generator.readthedocs.io/en/develop/
Changelog
See CHANGELOG.
LICENSE
MIT
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
Hashes for openapi-client-generator-1.0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b7e198b583e5569e76214c274a11cd94c565f1199ddec22b39a2b9aabe6b8a |
|
MD5 | 5faf964af8718ac2f27fb86bc82cfc9e |
|
BLAKE2b-256 | 2d7582bbc2d8fc8adf07353d5cf6301bb18e44aa067e7347942b6e65d38ffdcf |
Hashes for openapi_client_generator-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 353b64186899735eaa93e625f491c44055f26bf9fcbbe1cc085b7bf407812dad |
|
MD5 | eab4f75bb53584539af47ec31896a551 |
|
BLAKE2b-256 | 5d30b02f09fe56d9ce189c8c075258f91e9e02d24f4bd4c120ab856e18da43fa |