<reponame>rockychen-dpaw/data-storage
import pytz

from . import utils
from datetime import datetime

DEBUG = utils.env("DEBUG",False)

TIME_ZONE = utils.env("TIME_ZONE",'Australia/Perth')

TZ = datetime.now(tz=pytz.timezone(TIME_ZONE)).tzinfo


AZURE_BLOG_CLIENT_KWARGS={} 
for key,ekey,vtype in [("max_single_put_size","AZURE_MAX_SINGLE_PUT_SIZE",int),("max_single_get_size","AZURE_MAX_SINGLE_GET_SIZE",int)]:
    val=utils.env(ekey,vtype=vtype)
    if val is None:
        continue
    AZURE_BLOG_CLIENT_KWARGS[key] = val
