Lapidary-render is a program that generates Python Web API clients from OpenAPI documents.
It's a good practice to encapsulate Web API client code in functions or classes and methods,
If the Web API exposes an OpenAPI document, you can reduce the manual effort by generating the client code.
Install Lapiary-render, for example with pipx
pipx install lapidary-renderStart your project
lapidary init --save https://example.com/openapi.json project_dir my_api_clientGenerate code:
cd project_dir
lapidary renderCheck the documentation for more details.