-
Notifications
You must be signed in to change notification settings - Fork 1
eng: Add client helpers to the generated template for alpha and beta endpoints BNCH-111588 #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: prod/2.x
Are you sure you want to change the base?
Conversation
return client | ||
|
||
|
||
def v3_stable_client(client: Client) -> Client: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason we want to expose these in a lowish level library rather than in benchling-sdk? IIRC there's some "invariant" code that doesn't get generated that can be referenced from generated code. Could that be another location for this?
This is far too specific to our use of APIs to include in this library. Any functionality we write should be general to APIs. You could argue that replace_client_path
could live here but... something tells me there ought to be a way to specify this in the caller (in benchling-sdk) instead?
Update the client.py file to include helper functions to update the client url to use the alpha and beta endpoints.