Installation

$ pip install openapi-client-generator

Using CLI tool

Once installed, openapi-client-generator provides you with a CLI tool that allows you to generate a Python client derived from a JSON/YAML specification.

For example, try the following snippet in your shell:

$ curl -s https://<specs-location> | openapi-client-generator gen -o <new-client-dir>