Metadata-Version: 2.1
Name: scikit_cache
Version: 0.1.1
Summary: Pickle-based caching library with SKLearn estimators supports
License: MIT
Author-email: Denis Krumko <dkrumko@gmail.ru>
Requires-Python: >=3.8
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Utilities
Provides-Extra: dev
Project-URL: repository, https://github.com/deniskrumko/scikit-cache
Description-Content-Type: text/markdown

# Scikit Cache

Pickle-based caching library. Supports file-system caching only.

## Installation

```
pip install scikit_cache
```

Or to develop package you may install dev dependencies:
```
pip install -e ".[dev]" && pip uninstall -y scikit_cache
```

## How to disable logs

### Option 1: Disable all logs in cache controller

```
from scikit_cache import CacheController

cache = CacheController(..., logger=None)
```

### Option 2: Disable specific logs

To disable specific logs you need to add one of these lines before executing code with cache:

```
import logging

# Disable basic logs like "cache enabled" or "cache disabled"
logging.getLogger('scikit_cache.controller').setLevel(logging.ERROR)

# Disable logs from "@cache.decorator" only
logging.getLogger('scikit_cache.decorator').setLevel(logging.ERROR)

# Disable logs for estimators created by "make_cached_estimator"
logging.getLogger('scikit_cache.estimator').setLevel(logging.ERROR)

# Disable hashing errors
logging.getLogger('scikit_cache.hashing').setLevel(logging.ERROR)
```

