jupyter_cache/__init__.py
raw| 1 | # NOTE: never import anything here, in order to maintain CLI speed |
| 2 | __version__ = "1.0.0" |
| 3 | |
| 4 | |
| 5 | def get_cache(path, cache_cls=None): |
| 6 | """Return a cache, with a given folder path.""" |
| 7 | if cache_cls is None: |
| 8 | from jupyter_cache.cache.main import JupyterCacheBase as cache_cls |
| 9 | |
| 10 | return cache_cls(path) |