Skip to main content

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

effidict-0.0.1.tar.gz (400.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

effidict-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for effidict-0.0.1.tar.gz
Algorithm Hash digest
SHA256 44129f5460e82277e9bfec4d213da090fd6b84e05272f71ba84eaac77e5cfceb
MD5 c1f0bb4d6f6da82dcf01aed6aee786cb
BLAKE2b-256 4ee7e20fedbc62b5db3a0ee5b09393af8a95cee0af883f29d1f0181fa4126a27

See more details on using hashes here.

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

Hashes for effidict-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be4b0d7bfd2ba71a257e6843bc23c7182af0a7d44a845360405b8d3c529641da
MD5 0a63fe46002d00bc3eae5e9b65911f01
BLAKE2b-256 76e8e90d5ac878ecb225d7d1ce1c66eb8f99fe6ea25b95ec617eb30d5e707680

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page