[Python-ideas] Re: Proposal: Python Native bindings for OpenAPI

2021-08-09 Thread Vaideeswaran Ganesan
Thanks Steve, This is very useful and actionable feedback. I'll work on the parallel examples. I'm pretty much sure, it might take few rounds of consultation to bring out the value. I will also seriously think through the PyPI as an approach, as I seem to feel that OpenAPI is not really "all that

[Python-ideas] Re: Proposal: Python Native bindings for OpenAPI

2021-08-07 Thread Stephen J. Turnbull
Vaideeswaran Ganesan writes: > Intent is to make a web interaction as if you're working with local > function. This is very well known design pattern called Proxy. Sure, but the stdlib is fairly low-level. The question is not whether this module is useful. I'm sure for some purposes it is ver

[Python-ideas] Re: Proposal: Python Native bindings for OpenAPI

2021-08-07 Thread Vaideeswaran Ganesan
It is converting the REST API syntax into language constructs. If such mapping doesn't exist - I agree with you that we probably should give flexibility to user. On the other hand, if such mapping exists and I strongly believe so - seeing several examples in web, we should allow it. Intent is to

[Python-ideas] Re: Proposal: Python Native bindings for OpenAPI

2021-08-07 Thread Stephen J. Turnbull
Vaideeswaran Ganesan writes: > I actually want to avoid get, post, put, 2xx, 4xx codes in the > client portions of the code. I think this goal is too high-level for the standard library. I don't know what you expect on the other side, but in an application I work on it matters whether you're u

[Python-ideas] Re: Proposal: Python Native bindings for OpenAPI

2021-08-06 Thread Damian Shaw
In your code example it looks like FastAPI is making 1 HTTP request vs. your library is making 3 HTTP requests? Or are there some missing lines? Or am I missing something? Also are you referring to https://github.com/pyopenapi/pyopenapi ? And if so what would be the reasoning to pull something lik

[Python-ideas] Re: Proposal: Python Native bindings for OpenAPI

2021-08-06 Thread Vaideeswaran Ganesan
I looked at the fastapi code. I actually want to avoid get, post, put, 2xx, 4xx codes in the client portions of the code. (I don't think it's pythonic). And Fastapi seems to have them exactly the same. Look at how the code looks when you are using FastAPI and with my OpenAPI Native Bindings - be

[Python-ideas] Re: Proposal: Python Native bindings for OpenAPI

2021-08-06 Thread Gustavo Carneiro
You may want to take a look at FastAPI[1], it already does more or less what you ask for. There is no need for it to be part of the Python core, it's fine as it is as a package. [1] https://fastapi.tiangolo.com/ On Fri, 6 Aug 2021 at 17:39, Vaideeswaran Ganesan wrote: > OpenAPI (https://spec.o