Live data from Hacker News

Python HTTP-Clients from OpenAPI

artsmolin.github.io

1–6 of 6 posts

Re: Python HTTP-Clients from OpenAPI

#4

When I've ever tried to use these sorts of things, they're almost always pretty clunky. They can be an OK basis for building a client library on top of, but you rarely want to expose things exactly as the API does.

Did you see that it can build a client library by itself?

Re: Python HTTP-Clients from OpenAPI

#5
post #4

When I've ever tried to use these sorts of things, they're almost always pretty clunky. They can be an OK basis for building a client library on top of, but you rarely want to expose things exactly as the API does.

Did you see that it can build a client library by itself?

Yes, that's the premise of most OpenAPI generators... the issue is whether they're one that's actually nice to use.

Re: Python HTTP-Clients from OpenAPI

#6
post #4

Earlier quoted context omitted.

Did you see that it can build a client library by itself?

Yes, that's the premise of most OpenAPI generators... the issue is whether they're one that's actually nice to use.

Yeah, most are pretty crappy.

Curious if you give ours a try: https://stainlessapi.com (it's a commercial/non-oss option, but one language is free for smaller APIs). You can see an example of a Python library we generate here: https://github.com/Modern-Treasury/modern-treasury-python