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

Accessing config.yaml parameters #468

Open
baturorkun opened this issue Mar 18, 2020 · 2 comments
Open

Accessing config.yaml parameters #468

baturorkun opened this issue Mar 18, 2020 · 2 comments

Comments

@baturorkun
Copy link

I want to access config.yaml parameters. For example "aws_access_key_id" or "description" or "timeout" etc.. I could not find any object for this.

@ninurtalabs
Copy link

Define your variables preferably under environment_variables e.g.
In config.yml

environment_variables:
  timeout: 5
  key: xxx

Then in your Python file

import os
timeout = os.environ.get("timeout")

@bot2x
Copy link

bot2x commented Aug 2, 2022

@baturorkun Can you describe your problem a little more if getting it through "os.envrion.get(<config_parameter_name>)" does not fully solve the issue.

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

No branches or pull requests

3 participants