Skip to main content

Pluggable, compressed in-memory queues for both sync and asyncio applications.

Project description

quez

quez is a pluggable compressed queue for high-performance, memory-efficient buffering in both synchronous and asynchronous Python applications.

This library provides a solution for managing large volumes of in-memory data, such as in streaming data pipelines, logging systems, or high-throughput servers. It transparently compresses objects as they enter a queue and decompresses them upon retrieval, drastically reducing the memory footprint of in-flight data while preserving a simple, familiar queue interface.

Key Features

  • Dual Sync and Async Interfaces: Provides both a thread-safe quez.CompressedQueue for multi-threaded applications and an quez.AsyncCompressedQueue for asyncio, both sharing a consistent API.
  • Pluggable Compression Strategies: Ships with built-in, interchangeable strategies for zlib (default), bz2, and lzma. The architecture allows you to easily provide your own custom compression, serialization, or encryption algorithms.
  • Built-in Stats for Observability: Monitor the queue's state in real-time with the .stats property, which provides item count, total raw and compressed data sizes, and the live compression ratio.
  • Designed for Performance: In the asyncio version, CPU-bound compression and decompression tasks are automatically run in a background thread pool to keep the event loop unblocked and your application responsive.
  • Reduces Memory Pressure: Ideal for absorbing large, temporary bursts of data without ballooning memory usage, preventing potential swapping and performance degradation.

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

quez-0.0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

quez-0.0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file quez-0.0.2.tar.gz.

File metadata

  • Download URL: quez-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.4.16-cwt.x86_64

File hashes

Hashes for quez-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5affa268277652c252869554107dddb1780a4b32e0bb7f5fc5ffb8a32b383245
MD5 3512883b108df1ba2d3d7e2c022e250e
BLAKE2b-256 33c4d10b41d535c604c82d0a5334bd98d7f9f5d8d7aa99624711747160612d05

See more details on using hashes here.

File details

Details for the file quez-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: quez-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/6.4.16-cwt.x86_64

File hashes

Hashes for quez-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4d88ceae49582a17204d568e162ad7dab9d2135ea5d258a2f6c60d38ea0a901
MD5 52d380f2a997c7180d273e34b23a652d
BLAKE2b-256 6d0fb682204a43d54e87c2fb6f45631689de1d77e72202ece886ed0273a6687c

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 Pingdom Monitoring Sentry Error logging StatusPage Status page