Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 892 Bytes

File metadata and controls

33 lines (21 loc) · 892 Bytes

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-render init --save https://example.com/openapi.json project_dir my_api_client

Generate code:

cd project_dir
lapidary-render render

Check the documentation for more details.