# -*- coding: utf-8 -*-

import os
from distutils.util import strtobool


class Config:
    DEBUG = bool(strtobool(os.getenv('DEBUG', "False")))
    DATABASE_URI = os.getenv('DATABASE_URI', '127.0.0.1:27017')
    WORKERS = int(os.getenv('WORKERS', 2))
    LOGO = os.getenv('LOGO', None)
    HOST = os.getenv('HOST', '127.0.0.1')
    PORT = int(os.getenv('PORT', 8000))
    SECRET = os.getenv('SECRET', 'secret')
    LOGIN_MIN_LENGTH = int(os.getenv('LOGIN_MIN_LENGTH', 1))
    LOGIN_MAX_LENGTH = int(os.getenv('LOGIN_MAX_LENGTH', 32))

[(9, 'os.getenv', 'os.getenv', (['"""DATABASE_URI"""', '"""127.0.0.1:27017"""'], {}), False, 'import os\n'), (11, 'os.getenv', 'os.getenv', (['"""LOGO"""', 'None'], {}), False, 'import os\n'), (12, 'os.getenv', 'os.getenv', (['"""HOST"""', '"""127.0.0.1"""'], {}), False, 'import os\n'), (14, 'os.getenv', 'os.getenv', (['"""SECRET"""', '"""secret"""'], {}), False, 'import os\n'), (10, 'os.getenv', 'os.getenv', (['"""WORKERS"""', '(2)'], {}), False, 'import os\n'), (13, 'os.getenv', 'os.getenv', (['"""PORT"""', '(8000)'], {}), False, 'import os\n'), (15, 'os.getenv', 'os.getenv', (['"""LOGIN_MIN_LENGTH"""', '(1)'], {}), False, 'import os\n'), (16, 'os.getenv', 'os.getenv', (['"""LOGIN_MAX_LENGTH"""', '(32)'], {}), False, 'import os\n'), (8, 'os.getenv', 'os.getenv', (['"""DEBUG"""', '"""False"""'], {}), False, 'import os\n')]