Skip to content

python-lapidary/lapidary-render

Repository files navigation

Lapidary render

.github/workflows/test.yml

Lapidary-render is a program that generates Python Web API clients from OpenAPI documents.

Why

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.

How

Install Lapiary-render, for example with pipx

pipx install lapidary-render

Start your project

lapidary init --save https://example.com/openapi.json project_dir my_api_client

Generate code:

cd project_dir
lapidary render

Check the documentation for more details.