github meteoblue/python-dataset-sdk 1.1.0
1.1.0 Cache to files

latest releases: 1.3.5, 1.3.4, 1.3.3...
3 years ago

Support to cache temporary results on disk. The cache implementation is generic. A new cache can be provided that implements the cache abstract base class.

import zlib
from meteoblue_dataset_sdk.caching import FileCache
cache = FileCache(path="/tmp/my_cache_dir", max_age=4000, compression_level=zlib.Z_BEST_SPEED)
client = meteoblue_dataset_sdk.Client(apikey="xxxxxx", cache=cache)

Don't miss a new python-dataset-sdk release

NewReleases is sending notifications on new releases.