Exemple #1
0
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'}
Exemple #2
0
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)
Exemple #3
0
class Sendgrid:
    API_KEY = env('SENDGRID_API_KEY')
Exemple #4
0
class Slack:
    WEBHOOK_URL = env('SLACK_WEBHOOK_URL')
    ERROR_CODES = env('SLACK_ERROR_CODES', to.LIST_OF_INTS)
Exemple #5
0
class Github:
    TOKEN = env('GITHUB_TOKEN')
    ISSUES_URL = env('GITHUB_ISSUES_URL')
    PROJECT_URL = env('GITHUB_PROJECT_URL')
    SHA = env('GITHUB_SHA')
Exemple #6
0
class Picklecache:
    ENABLED = env('PICKLECACHE_ENABLED', to.BOOL)
    TTL_SECONDS = env('PICKLECACHE_TTL_SECONDS', to.INT)
Exemple #7
0
class Picklebase:
    ENABLED = env('PICKLEBASE_ENABLED', to.BOOL)
    BATCH_SIZE = env('PICKLEBASE_BATCH_SIZE', to.INT)
Exemple #8
0
class Redis:
    ENABLED = env('REDIS_ENABLED', to.BOOL)
    URL = env('REDIS_URL')
    TTL_SECONDS = env('REDIS_TTL_SECONDS', to.INT)
Exemple #9
0
class Database:
    URL = env('DATABASE_URL')
    LOG_QUERIES = env('DATABASE_LOG_QUERIES', to.BOOL)
    LOG_CONNECTIONS = False