repl.it
@turbio/

python dotenv example

Python

sample usage of dotenv in python

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

secret_token = os.getenv("TOKEN")

if secret_token:
  print("The secret TOKEN is:", secret_token)
else:
  print("Looks like you're not the owner")
Fetching token
?