EffiDict
EffiDict is an efficient and fast Python package providing enhanced dictionary-like data structures with advanced caching capabilities. It's perfect for applications needing speedy retrieval and persistent key-value pair storage.
Features
LRU Caching: Implements Least Recently Used caching for optimal data access. Persistent Storage: Supports disk storage with SQLite. Versatile: Adaptable for various data types.
Installation
You can install EffiDict via pip:
pip install effidict
Usage
from effidict import LRUDBDict, LRUDict, DBDict
# Using LRUDict
cache_dict = LRUDict(max_in_memory=100, storage_path="cache")
cache_dict['key'] = 'value'
# Using LRUDBDict for persistent storage
db_cache_dict = LRUDBDict(max_in_memory=100, storage_path="cache.db", batch_size=10)
db_cache_dict['key'] = 'value'
# Standard DBDict
db_dict = DBDict(storage_path="cache.db")
db_dict['key'] = 'value'
License
Licensed under the MIT License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file effidict-0.0.1.tar.gz.
File metadata
- Download URL: effidict-0.0.1.tar.gz
- Upload date:
- Size: 400.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44129f5460e82277e9bfec4d213da090fd6b84e05272f71ba84eaac77e5cfceb
|
|
| MD5 |
c1f0bb4d6f6da82dcf01aed6aee786cb
|
|
| BLAKE2b-256 |
4ee7e20fedbc62b5db3a0ee5b09393af8a95cee0af883f29d1f0181fa4126a27
|
File details
Details for the file effidict-0.0.1-py3-none-any.whl.
File metadata
- Download URL: effidict-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be4b0d7bfd2ba71a257e6843bc23c7182af0a7d44a845360405b8d3c529641da
|
|
| MD5 |
0a63fe46002d00bc3eae5e9b65911f01
|
|
| BLAKE2b-256 |
76e8e90d5ac878ecb225d7d1ce1c66eb8f99fe6ea25b95ec617eb30d5e707680
|