Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

eng: Add client helpers to the generated template for alpha and beta endpoints BNCH-111588#228

Open
tara-natarajan wants to merge 11 commits intoprod/2.x from
tara/add-client-helpers
Open

eng: Add client helpers to the generated template for alpha and beta endpoints BNCH-111588 #228
tara-natarajan wants to merge 11 commits intoprod/2.x from
tara/add-client-helpers

Conversation

@tara-natarajan
Copy link

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

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:
Copy link

@edwin-benchling edwin-benchling May 14, 2025

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

Reviewers

@edwin-benchling edwin-benchling edwin-benchling left review comments

@felipenarv felipenarv Awaiting requested review from felipenarv

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /