OpenAlchemy CLI¶
openalchemy build¶
Description¶
Build a Python package containing the models described in the OpenAPI specification file.
Extended Description¶
The openalchemy build
command builds a reusable Python package based off
of the specification file.
For instance, running the following command:
openalchemy build openapi.yml simple dist
Produces the following artifacts:
dist
└── simple
├── MANIFEST.in
├── build
├── dist
│ ├── simple-0.1-py3-none-any.whl
│ └── simple-0.1.tar.gz
├── setup.py
├── simple
│ ├── __init__.py
│ └── spec.json
└── simple.egg-info
By default, a source and a wheel package are built, but this behavior can be
adjusted by using the --format
option.
Options¶
Name, shorthand |
Default |
Description |
–format, -f |
sdist, wheel |
limit the format to either sdist or wheel |