extensible-cache

Extensible Caching Framework for Python


Keywords
cache;caching
License
MIT
Install
pip install extensible-cache==1.0.1

Documentation

PythonCache

Simple Library to do Python Caching

Getting Started

To install, simply use:

pip install extensible-cache

(Planning to add the library to PyPi in the future).

The library is easy to use, just load a cache and provide it some data.

import pandas as pd
from extensible_cache import PandasFileCache

cache = PandasFileCache("./cache_folder")
df = pd.read_csv("test.csv")

cache["my_cool_data"] = df

# ... somewhere later (even after restart) ...

df_new = cache["my_cool_data"]

This allows you to quickly buffer data to files and restore them later on.

Notes

All contribtions are welcome!