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

Delta Sharing Python Package to Load Credentials from String #448

Open
lz100 opened this issue Dec 15, 2023 · 0 comments
Open

Delta Sharing Python Package to Load Credentials from String #448

lz100 opened this issue Dec 15, 2023 · 0 comments

Comments

@lz100
Copy link

lz100 commented Dec 15, 2023

Right now in the python package, one needs to specify the path of the credentials file. However, in Github Actions and similar CI environments, loading credentials from environment variables is desired. I tried to search your document, but with no result. Is there any possible way one can load from an env variable or a string, like the following?

import delta_sharing
import os

profile = os.environ["PROFILE"]

client = delta_sharing.SharingClient(config_string = profile)

A similar approach has been implemented in the delta-sharing-r package. It would be so nice if we could do the same in Python.

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

1 participant