quez 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quez/__init__.py +0 -0
- quez-0.0.1.dist-info/LICENSE +21 -0
- quez-0.0.1.dist-info/METADATA +32 -0
- quez-0.0.1.dist-info/RECORD +5 -0
- quez-0.0.1.dist-info/WHEEL +4 -0
quez/__init__.py
ADDED
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 Chaiwat Suttipongsakul
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Metadata-Version: 2.3
|
2
|
+
Name: quez
|
3
|
+
Version: 0.0.1
|
4
|
+
Summary: Pluggable, compressed in-memory queues for both sync and asyncio applications.
|
5
|
+
License: MIT
|
6
|
+
Author: Chaiwat Suttipongsakul
|
7
|
+
Author-email: cwt@bashell.com
|
8
|
+
Requires-Python: >=3.11,<4.0
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
14
|
+
Project-URL: GitHub Mirror, https://github.com/cwt/qzq
|
15
|
+
Project-URL: Homepage, https://sr.ht/~cwt/qzq/
|
16
|
+
Project-URL: Repository, https://hg.sr.ht/~cwt/qzq
|
17
|
+
Description-Content-Type: text/markdown
|
18
|
+
|
19
|
+
# **qzq**
|
20
|
+
|
21
|
+
**qzq** is a pluggable compressed queue for high-performance, memory-efficient buffering in both synchronous and asynchronous Python applications.
|
22
|
+
|
23
|
+
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.
|
24
|
+
|
25
|
+
### Key Features
|
26
|
+
|
27
|
+
* **Dual Sync and Async Interfaces**: Provides both a thread-safe `qzq.CompressedQueue` for multi-threaded applications and an `qzq.AsyncCompressedQueue` for `asyncio`, both sharing a consistent API.
|
28
|
+
* **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.
|
29
|
+
* **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.
|
30
|
+
* **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.
|
31
|
+
* **Reduces Memory Pressure**: Ideal for absorbing large, temporary bursts of data without ballooning memory usage, preventing potential swapping and performance degradation.
|
32
|
+
|
@@ -0,0 +1,5 @@
|
|
1
|
+
quez/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
quez-0.0.1.dist-info/LICENSE,sha256=2rqXctVLoWnahqJEBjZLZm-LkVU9TtVQnJk134yyGl0,1079
|
3
|
+
quez-0.0.1.dist-info/METADATA,sha256=cuosQ4iEjVlGvfyyHfLPK_CNkdUnKGxW0PfGGZg9Byk,2271
|
4
|
+
quez-0.0.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
5
|
+
quez-0.0.1.dist-info/RECORD,,
|