class Socrata: TOKEN = env('SOCRATA_TOKEN') BATCH_SIZE = env('SOCRATA_BATCH_SIZE', to.INT) TIMEOUT = 90 ATTEMPTS = 5 DOMAIN = 'data.lacity.org' DATASET_IDS = { 2020: 'rq3b-xjk8', 2019: 'pvft-t768', 2018: 'h65r-yf5i', 2017: 'd4vt-q4t5', 2016: 'ndkd-k878', 2015: 'ms7h-a45h'}
class Server: HOST = env('HOST') PORT = env('PORT', to.INT) DEBUG = env('DEBUG', to.BOOL) ACCESS_LOG = env('ACCESS_LOG', to.BOOL) AUTO_RELOAD = env('AUTO_RELOAD', to.BOOL) WORKERS = env('WORKERS', to.INT) TMP_DIR = env('TMP_DIR', to.ABS_PATH) UPDATE_ON_START = env('UPDATE_ON_START', to.BOOL)
class Sendgrid: API_KEY = env('SENDGRID_API_KEY')
class Slack: WEBHOOK_URL = env('SLACK_WEBHOOK_URL') ERROR_CODES = env('SLACK_ERROR_CODES', to.LIST_OF_INTS)
class Github: TOKEN = env('GITHUB_TOKEN') ISSUES_URL = env('GITHUB_ISSUES_URL') PROJECT_URL = env('GITHUB_PROJECT_URL') SHA = env('GITHUB_SHA')
class Picklecache: ENABLED = env('PICKLECACHE_ENABLED', to.BOOL) TTL_SECONDS = env('PICKLECACHE_TTL_SECONDS', to.INT)
class Picklebase: ENABLED = env('PICKLEBASE_ENABLED', to.BOOL) BATCH_SIZE = env('PICKLEBASE_BATCH_SIZE', to.INT)
class Redis: ENABLED = env('REDIS_ENABLED', to.BOOL) URL = env('REDIS_URL') TTL_SECONDS = env('REDIS_TTL_SECONDS', to.INT)
class Database: URL = env('DATABASE_URL') LOG_QUERIES = env('DATABASE_LOG_QUERIES', to.BOOL) LOG_CONNECTIONS = False