Config

All settings are saved in this module

tools.config.settings = <tools.config.Setting object>

Import this to gain the initial settings

class tools.config.Setting[source]

Contains all Settings - Loads from the os env

Warning

Do not create your own instance! Import settings instead from this module!

Note

Do not modifie SQL_LITE by yourself

GOOGLE_API_KEY

Google API Key

Type

str

SECRET_KEY

Key that is used for the JWT hashing

Type

str

ALGORITHM

Used hash algorit. Defaults to HS256

Type

str

ACCESS_TOKEN_EXPIRE_MINUTES

How long JWT - Token is valid in Minutes. Defaults to 30

Type

int

SQL_LITE

Automatic set to True if POSTGRES_SERVER is set

Type

bool

POSTGRES_USER

User for the DB

Type

str

POSTGRES_PASSWORD

Password for the user

Type

str

POSTGRES_SERVER

FQDN or IP of the DB Server

Type

str

POSTGRES_DATABASE

Name of the Database

Type

str

POSTGRES_PORT

Port of the Server

Type

str