Skip to content

Commit

Permalink
feat: renomeação do arquivio + adição da env 'INTEGRATION_TOKEN'
Browse files Browse the repository at this point in the history
  • Loading branch information
davi.s.rafacho committed Aug 29, 2024
1 parent 3d844a1 commit 5587050
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 71 deletions.
29 changes: 29 additions & 0 deletions utils/env.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import os

from typing import Literal

EnviromentVar = Literal[
"DJANGO_SECRET_KEY",
"DJANGO_DEBUG",
"DJANGO_MODE",
"DJANGO_EXECUTION_MODE",
"DATABASE_NAME",
"DATABASE_USER",
"DATABASE_PASSWORD",
"DATABASE_HOST",
"DATABASE_PORT",
"EMAIL_PASSWORD",
"RABBITMQ_HOST",
"RABBITMQ_USER",
"RABBITMQ_PSSWD",
"RABBITMQ_PORT",
"REDIS_HOST",
"REDIS_PORT",
"INTEGRATION_TOKEN",
]


environ_keys = EnviromentVars

def get_environ_var(key: EnviromentVar):
return os.environ.get(key)
71 changes: 0 additions & 71 deletions utils/environment.py

This file was deleted.

0 comments on commit 5587050

Please sign in to comment.