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

Guide for enviorement variables #25

Open
lit34 opened this issue Mar 6, 2021 · 4 comments
Open

Guide for enviorement variables #25

lit34 opened this issue Mar 6, 2021 · 4 comments

Comments

@lit34
Copy link

lit34 commented Mar 6, 2021

Can you please tell me how to put those values in a file? What is the syntax? I created a .env file but I get this error:
raise KeyError(key) from None
KeyError: 'API_ID'

@viper-adnan
Copy link

viper-adnan commented Jun 9, 2021

Use these commands to set environment variables

export API_ID=8191919
export API_HASH="8hwhw91j282uw8wj"

And so on...

@pseudokawaii
Copy link
Contributor

@lit34 if you are talking about repl.it deployment, it doesn't require you to create the .env file yourself anymore, you can set them as keys and values in the secrets tab of the IDE ~

image

@simonlkch
Copy link

Use these commands to set environment variables

export API_ID=8191919
export API_HASH="8hwhw91j282uw8wj"

And so on...

how can i use .env instead of export the env value?

@rayanfer32
Copy link
Contributor

rayanfer32 commented Aug 2, 2021

Use these commands to set environment variables

export API_ID=8191919
export API_HASH="8hwhw91j282uw8wj"

And so on...

how can i use .env instead of export the env value?

I suppose you can use the python_dotenv module and load the .env file , I havent tested it though on repl.it

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

5 participants