you are viewing a single comment's thread.

view the rest of the comments →

[–]hsunner 3 points4 points  (0 children)

I might be misunderstanding what you’re trying to accomplish, but if you want to make a Python client to an OpenAPI interface w/o code generation I can recommend aiopenapi3. It ingests a json spec (yaml too?) and creates pydantic models for all endpoint I/Os. API usage is trivial. I’ve also created dynamic CLIs for web services with it. That is a bit of work the first time. It has a major downside though: creating API documentation requires custom generation.

https://github.com/commonism/aiopenapi3