repl.it
@timmy_i_chen/

python dotenv example

Python

sample usage of dotenv in python

fork
loading
Files
  • main.py
  • env
main.py
1
2
3
4
5
6
7
# settings.py
import os

secret_token = os.getenv("TOKEN")

print("The secret TOKEN is:")
print(secret_token)