Skip to content

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

Open
wants to merge 11 commits into
base: prod/2.x
Choose a base branch
from

Conversation

tara-natarajan
Copy link

@tara-natarajan tara-natarajan commented May 14, 2025

Update the client.py file to include helper functions to update the client url to use the alpha and beta endpoints.

Screenshot 2025-05-14 at 4 05 11 PM

@tara-natarajan tara-natarajan changed the title Eng: Add client helpers to the generated template for alpha and beta endpoints Eng: Add client helpers to the generated template for alpha and beta endpoints BNCH-111588 May 14, 2025
@tara-natarajan tara-natarajan changed the title Eng: Add client helpers to the generated template for alpha and beta endpoints BNCH-111588 eng: Add client helpers to the generated template for alpha and beta endpoints BNCH-111588 May 14, 2025
return client


def v3_stable_client(client: Client) -> Client:

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants