File: __init__.py

package info (click to toggle)
jupyter-cache 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 840 kB
  • sloc: python: 2,601; makefile: 40; sh: 9
file content (10 lines) | stat: -rw-r--r-- 309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# NOTE: never import anything here, in order to maintain CLI speed
__version__ = "1.0.0"


def get_cache(path, cache_cls=None):
    """Return a cache, with a given folder path."""
    if cache_cls is None:
        from jupyter_cache.cache.main import JupyterCacheBase as cache_cls

    return cache_cls(path)