# Path: dlstats/version.py
# VERSION = (0, 8, 6)
# def version_str():
# 
# Path: dlstats/constants.py
# CACHE_URL = os.environ.get('WIDUKIND_CACHE_URL', 'simple') #redis://localhost:6379/0


import atexit
import tempfile
import pprint
import os
import sys
import contextlib
import gridfs
import click
            import requests_cache
from widukind_common.utils import get_mongo_url, get_mongo_client, configure_logging
from widukind_common.mongolock import MongoLock, MongoLockLocked
from widukind_common import errors
from dlstats import version
from dlstats.constants import CACHE_URL
            from widukind_common import debug
        from logging import FileHandler
        from dlstats import cache
                          help='Logging level')

opt_logger_file = click.option('--log-file', 
                               type=click.Path(exists=False), 
                               help='log file for output')

opt_logger_conf = click.option('--log-config', 
                               type=click.Path(exists=True), 
                               help='Logging config filepath')

opt_cache_enable = click.option('-C', '--cache-enable', 
                               is_flag=True,
                               help='Enable global cache')

opt_requests_cache_enable = click.option('--requests-cache-enable', 
                               is_flag=True,
                               help='Enable requests cache')

opt_requests_cache_path = click.option('--requests-cache-path', 
                               type=click.Path(exists=False),
                               default=DEFAULT_PATH_REQUESTS_CACHE,
                               show_default=True, 
                               help='Path for requests cache')

opt_requests_cache_expire = click.option('--requests-cache-expire', 
                                default=60 * 60 * 4, 
                                type=int, 
                                help='Requests cache expire. default 4 hours. 0 for disabled')

cmd_folder = os.path.abspath(

# Path: dlstats/version.py
# VERSION = (0, 8, 6)
# def version_str():
# 
# Path: dlstats/constants.py
# CACHE_URL = os.environ.get('WIDUKIND_CACHE_URL', 'simple') #redis://localhost:6379/0


# Path: dlstats/client.py
import atexit
import tempfile
import pprint
import os
import sys
import contextlib
import gridfs
import click
            import requests_cache
from widukind_common.utils import get_mongo_url, get_mongo_client, configure_logging
from widukind_common.mongolock import MongoLock, MongoLockLocked
from widukind_common import errors
from dlstats import version
from dlstats.constants import CACHE_URL
            from widukind_common import debug
        from logging import FileHandler
        from dlstats import cache

                          help='Logging level')

opt_logger_file = click.option('--log-file', 
                               type=click.Path(exists=False), 
                               help='log file for output')

opt_logger_conf = click.option('--log-config', 
                               type=click.Path(exists=True), 
                               help='Logging config filepath')

opt_cache_enable = click.option('-C', '--cache-enable', 
                               is_flag=True,
                               help='Enable global cache')

opt_requests_cache_enable = click.option('--requests-cache-enable', 
                               is_flag=True,
                               help='Enable requests cache')

opt_requests_cache_path = click.option('--requests-cache-path', 
                               type=click.Path(exists=False),
                               default=DEFAULT_PATH_REQUESTS_CACHE,
                               show_default=True, 
                               help='Path for requests cache')

opt_requests_cache_expire = click.option('--requests-cache-expire', 
                                default=60 * 60 * 4, 
                                type=int, 
                                help='Requests cache expire. default 4 hours. 0 for disabled')

cmd_folder = os.path.abspath(

                    os.path.join(os.path.dirname(__file__), 'commands'))