# -*- 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))

[((164, 208), 'os.getenv', 'os.getenv', (['"""DATABASE_URI"""', '"""127.0.0.1:27017"""'], {}), "('DATABASE_URI', '127.0.0.1:27017')\n", (173, 208), False, 'import os\n'), ((263, 286), 'os.getenv', 'os.getenv', (['"""LOGO"""', 'None'], {}), "('LOGO', None)\n", (272, 286), False, 'import os\n'), ((298, 328), 'os.getenv', 'os.getenv', (['"""HOST"""', '"""127.0.0.1"""'], {}), "('HOST', '127.0.0.1')\n", (307, 328), False, 'import os\n'), ((382, 411), 'os.getenv', 'os.getenv', (['"""SECRET"""', '"""secret"""'], {}), "('SECRET', 'secret')\n", (391, 411), False, 'import os\n'), ((227, 250), 'os.getenv', 'os.getenv', (['"""WORKERS"""', '(2)'], {}), "('WORKERS', 2)\n", (236, 250), False, 'import os\n'), ((344, 367), 'os.getenv', 'os.getenv', (['"""PORT"""', '(8000)'], {}), "('PORT', 8000)\n", (353, 367), False, 'import os\n'), ((439, 471), 'os.getenv', 'os.getenv', (['"""LOGIN_MIN_LENGTH"""', '(1)'], {}), "('LOGIN_MIN_LENGTH', 1)\n", (448, 471), False, 'import os\n'), ((500, 533), 'os.getenv', 'os.getenv', (['"""LOGIN_MAX_LENGTH"""', '(32)'], {}), "('LOGIN_MAX_LENGTH', 32)\n", (509, 533), False, 'import os\n'), ((115, 142), 'os.getenv', 'os.getenv', (['"""DEBUG"""', '"""False"""'], {}), "('DEBUG', 'False')\n", (124, 142), False, 'import os\n')]