Skip to main content

CircularDict is a high-performance Python data structure that combines the best of dictionaries and circular buffers. It provides a data structure that acts as a dictionary but operates as a circular buffer, efficiently removing the oldest item when a predetermined maximum length is exceeded. Ideal for caching large items while minimizing memory usage, CircularDict provides a unique solution for developers requiring dictionary-like and circular-queue-like operations in a single, efficient data structure.

Project description

CircularQueueDict

Dictionary that acts as a Circular Queue, allowing to set a maximum length and automatically delete oldest element when inputting a new one. Useful for temporal storage of large elements that could overflow memory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

circular-dict-1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page