Skip to content
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

PyOphidia to load client credentials from env if not given #8

Closed
TobiasWeigel opened this issue Mar 28, 2018 · 1 comment
Closed

PyOphidia to load client credentials from env if not given #8

TobiasWeigel opened this issue Mar 28, 2018 · 1 comment

Comments

@TobiasWeigel
Copy link

When creating a client instance, user credentials and server details need to be specified:

ophclient = client.Client(username="oph-user",password="oph-passwd",server="127.0.0.1",port="11732")

For ecaslab, these details are already known to the executing environment, because the user is logged in to Jupyter and the server may also be set to a default, at least for novice users. Would it be possible to let the client read these options from sys.env if they are not given? The Ophidia terminal is able to do this already.

@eldoo
Copy link
Collaborator

eldoo commented Jun 21, 2018

This feature was under development and is now available in PyOphidia v1.6.0 (PR #17). The connection parameters can be read directly from environment variables, similarly to the Ophidia Terminal. The connection command to exploit this feature is:

ophclient = client.Client(read_env=True)

@eldoo eldoo closed this as completed Jun 22, 2018
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

No branches or pull requests

2 participants