Skip to main content

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

Project description

Quez

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

This library excels at managing large volumes of in-memory data, making it perfect for streaming data pipelines, logging systems, or high-throughput servers. It transparently compresses objects as they enter the queue and decompresses them upon retrieval, slashing the memory footprint of in-flight data while maintaining a simple, familiar queue interface.

Key Features

  • Dual Sync and Async Interfaces: Offers a thread-safe quez.CompressedQueue for multi-threaded applications and an quez.AsyncCompressedQueue for asyncio, both with a consistent API.
  • Pluggable Compression Strategies: Includes built-in support for zlib (default), bz2, and lzma, with optional zstd and lzo. The flexible architecture lets you plug in custom compression, serialization, or encryption algorithms.
  • Real-Time Observability: Track queue performance with the .stats property, which reports item count, raw and compressed data sizes, and live compression ratio.
  • Optimized for Performance: In the asyncio version, CPU-intensive compression and decompression tasks run in a background thread pool, keeping the event loop responsive.
  • Memory Efficiency: Handles large, temporary data bursts without excessive memory usage, preventing 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.1.0.tar.gz (5.8 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.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quez-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 4a0b0017c54288b2d0af8e539d606d5d3ab7beca2d872c128580fbe012194175
MD5 9b0667fdfcd78522c1e42be1f4196ed7
BLAKE2b-256 f1f8eb1e5df27bfb1509e90f64edd1bff25dea99d7852fc8c539ecda7793603a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quez-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16522bf1473295bdc1c789608d99896a302460277c945e2b1e8981bf43f2b99c
MD5 a643892b5b302f0838119449b5a8efab
BLAKE2b-256 9ebda38f0e8145733860cd035862145d531c31f38ab3ce575377e758da8ac183

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