What client side equivalent to FastAPI do you recommend?

I was wondering what client side code generator is available equivalent to the server side koxudaxi/fastapi-code-generator. I don’t like what the OpenAPITools/openapi-generator generates. I need something which makes use of pydantic models? Other generators I’ve found so far on GitHub (sorry, I’m not allowed to post a lot of links yet):

  • sennder/python-client-generator
  • DamianSop/pydantic_rest_client
  • essembeh/rapid-api-client
  • mom1/api-client-pydantic
  • (mom1/apiclient-pydantic-generator > deprecated)
  • (MikeWooster/api-client > ?)

Has someone already used one/some of them and provide some experience?

We use

And have had good success. It uses attrs instead of pydantic but might still be worth checking out.

Thx for the hint. Do you know some open source repo which makes use of/is generated with open-api-client? Would be interesting ohw the code looks like (support for pagination, …).

open-api-client:

  • poetry / pdm / ruff only (no support for uv)

Note that since PDM and uv both use standard pyproject.toml metadata, you can use the PDM output type and then adapt it with very minor changes to work with uv. That is what we do.

For direct uv support, you can vote for and follow

I’d recommend simply pointing openapi-python-client at your FastAPI OpenAPI spec and playing around with it to see if you like it.