Python Lightweight API (PyLapi) is a Python API builder. It takes only a few seconds to automatically generate a Python API from OpenAPI specifications or less than an hour for an experienced Python developer to create a custom Python API.
Here is an overview.
Please follow these instructions to install PyLapi and its generator.
To install the PyLapi class:
pip install pylapi
To generate a PyLapi supported Python API:
pylapi-autogen --template > myapi_config.py
# Configure myapi_config.py
pylapi-autogen myapi_config.py
# Output
# MyAPI generated and saved in ./myapi.py
Please replace myapi_config.py
with the file name you want.
PyLapi tutorial and user guide are available at the PyLapi GitHub repository. PyLapi API is documented on Read the Docs.