You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for this project and all the work that went into it. It's honestly the most useable Python Client SDK generator, at least for our use cases.
However, there is one thing I find a little odd. We are using this pattern:
frommy_client.api.defaultimportsome_endpointfrommy_client.api.experimentalimportsome_otherendpointwithClient(...) asclient:
matchsome_endpoint.sync(client, ...):
caseResponseBody() asr:
do_something(r)
case _:
do_something_else(...)
I feel like it would be nice to be able to do
frommy_client.apiimportdefaultwithClient(...) asclient:
matchdefault.some_endpoint.sync(client, ...):
caseResponseBody() asr:
do_something(r)
case _:
do_something_else(...)
but unfortunately, the individual endpoint modules are not exposed on what we call the "tag" module (my_client.api.<TAG>).
Is there a specific reason for this? Especially when I compare against my_client.models, I wonder why it is not done like that for the tag modules as well.
I think it should be a rather easy change which also should not break anything.
What are your thoughts? I hope this was not asked already, I have taken some time to skim over the open discussions and did not find something related.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey!
First of all, thanks for this project and all the work that went into it. It's honestly the most useable Python Client SDK generator, at least for our use cases.
However, there is one thing I find a little odd. We are using this pattern:
I feel like it would be nice to be able to do
but unfortunately, the individual endpoint modules are not exposed on what we call the "tag" module (
my_client.api.<TAG>
).Is there a specific reason for this? Especially when I compare against
my_client.models
, I wonder why it is not done like that for the tag modules as well.I think it should be a rather easy change which also should not break anything.
What are your thoughts? I hope this was not asked already, I have taken some time to skim over the open discussions and did not find something related.
Beta Was this translation helpful? Give feedback.
All reactions