{"repo":"openapi-generators/openapi-python-client","free":true,"listed":false,"github":"https://github.com/openapi-generators/openapi-python-client","clone":"git clone https://github.com/openapi-generators/openapi-python-client.git","description":"Generate modern Python clients from OpenAPI","language":"Python","stars":1983,"topics":["openapi","openapi-python-client","python3","generator","rest-api","python","fastapi","openapi-document","openapi3","openapi31"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"openapi-python-client Generate modern Python clients from OpenAPI 3.0 and 3.1 documents. This generator does not support OpenAPI 2.x FKA Swagger. If you need to use an older document, try upgrading it to version 3 first with one of many available converters. This project is still in development and does not support all OpenAPI features Why This? This tool focuses on creating the best developer experience for Python developers by: 1. Using all the latest and greatest Python features like type annotations and dataclasses. 2. Having documentation and usage instructions specific to this one generator. 3. Being written in Python with Jinja2 templates, making it easier to improve and extend for Python developers. It's also much easier to install and use if you already have Python. Installation I recommend you install with pipx so you don't conflict with any other packages you might have: pipx install openapi-python-client --include-deps . Note the --include-deps option makes ruff available in your path so that openapi-python-client can use it to clean up the generated code. If you use pipx run then the post-generation hooks will not be available unless you install them manually. You can also install with normal pip: pip install openapi-python-client Then, if you want tab completion: openapi-python-client --install-completion Usage Create a new client openapi-python-client generate --url https://my.api.com/openapi.json This will generate a new client library named based on the title","default_branch":null,"files":null,"tree":[],"storefront":"/r/openapi-generators","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/openapi-generators/openapi-python-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}