Skip to content

RSDK-10208 - create app client from env vars #874

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

Merged

Conversation

stuqdog
Copy link
Member

@stuqdog stuqdog commented Mar 14, 2025

Blocked on release of viamrobotics/rdk#4853, though tested against those changes locally and was able to create a ViamClient successfully.

@stuqdog stuqdog requested a review from a team as a code owner March 14, 2025 14:51
@stuqdog stuqdog requested review from njooma and lia-viam March 14, 2025 14:51
@@ -24,14 +25,46 @@ class ViamClient:
ViamClient.create_from_dial_options(...)
"""

@classmethod
async def create_from_env_vars(cls, dial_options: Optional[DialOptions] = None, app_url: Optional[str] = None) -> Self:
"""Create `ViamClient` using credentials set by a module.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think instead of "set by a module" maybe say "using credentials set in the environment as VIAM_API_KEY and VIAM_API_KEY_ID"

@stuqdog stuqdog requested a review from njooma March 14, 2025 20:03
@stuqdog stuqdog merged commit c181037 into viamrobotics:main Mar 18, 2025
12 checks passed
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