# -*- 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, 19, 9, 63), 'os.getenv', 'os.getenv', ({(9, 29, 9, 43): '"""DATABASE_URI"""', (9, 45, 9, 62): '"""127.0.0.1:27017"""'}, {}), "('DATABASE_URI', '127.0.0.1:27017')", False, 'import os\n'), ((11, 11, 11, 34), 'os.getenv', 'os.getenv', ({(11, 21, 11, 27): '"""LOGO"""', (11, 29, 11, 33): 'None'}, {}), "('LOGO', None)", False, 'import os\n'), ((12, 11, 12, 41), 'os.getenv', 'os.getenv', ({(12, 21, 12, 27): '"""HOST"""', (12, 29, 12, 40): '"""127.0.0.1"""'}, {}), "('HOST', '127.0.0.1')", False, 'import os\n'), ((14, 13, 14, 42), 'os.getenv', 'os.getenv', ({(14, 23, 14, 31): '"""SECRET"""', (14, 33, 14, 41): '"""secret"""'}, {}), "('SECRET', 'secret')", False, 'import os\n'), ((10, 18, 10, 41), 'os.getenv', 'os.getenv', ({(10, 28, 10, 37): '"""WORKERS"""', (10, 39, 10, 40): '2'}, {}), "('WORKERS', 2)", False, 'import os\n'), ((13, 15, 13, 38), 'os.getenv', 'os.getenv', ({(13, 25, 13, 31): '"""PORT"""', (13, 33, 13, 37): '8000'}, {}), "('PORT', 8000)", False, 'import os\n'), ((15, 27, 15, 59), 'os.getenv', 'os.getenv', ({(15, 37, 15, 55): '"""LOGIN_MIN_LENGTH"""', (15, 57, 15, 58): '1'}, {}), "('LOGIN_MIN_LENGTH', 1)", False, 'import os\n'), ((16, 27, 16, 60), 'os.getenv', 'os.getenv', ({(16, 37, 16, 55): '"""LOGIN_MAX_LENGTH"""', (16, 57, 16, 59): '32'}, {}), "('LOGIN_MAX_LENGTH', 32)", False, 'import os\n'), ((8, 27, 8, 54), 'os.getenv', 'os.getenv', ({(8, 37, 8, 44): '"""DEBUG"""', (8, 46, 8, 53): '"""False"""'}, {}), "('DEBUG', 'False')", False, 'import os\n')]