

@contextmanager
def enabled(*args, **kwargs):
    "\n    Context manager for temporary installing global cache.\n\n    Accepts same arguments as :func:`install_cache`\n\n    .. warning:: not thread-safe\n\n    ::\n\n        >>> with requests_cache.enabled('cache_db'):\n        ...     requests.get('http://httpbin.org/get')\n\n    "
    install_cache(*args, **kwargs)
    try:
        (yield)
    finally:
        uninstall_cache()

dataset/ETHPy150Open reclosedev/requests-cache/requests_cache/core.py enabled/original