QueueFile
QueueFile is a basic file-based queue system for Python. It's designed for simplicity, not performance.
Features
- File-based persistence
- Thread-safe operations
- Max queue size limit
Installation
pip install queue-file
Usage
from queue_file import QueueFile
# Create a queue
q = QueueFile("/tmp/my_queue.txt", max_size=1000)
# Add items
q.enqueue("task1")
q.enqueue("task2")
# Get items
item = q.dequeue() # Returns "task1"
# Check size
size = q.size() # Returns 1
# Clear queue
q.clear()
Limitations
- Not suitable for queues larger than 10,000 items
- Performance decreases with queue size
This project is released under the CC0 license, dedicating it to the public domain.
Metadata
Release files for queue-file 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| queue-file-0.1.0.tar.gz | 5.9 kB | Without provenance | Details for queue-file-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| queue_file-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for queue_file-0.1.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / queue-file-0.1.0.tar.gz
| Download URL | queue-file-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c0c5f587d967b0bb217959349cc5e7ba382a5ae42fda59d500e49ce5a6a94d0
|
|
BLAKE2b-256 checksum How to use checksums |
1c7e4e2dbeb8f82dd2872c7ee2770e7c9eaa88b2470baa9bbf51372a7ae592b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / queue_file-0.1.0-py3-none-any.whl
| Download URL | queue_file-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a830bfce3cd5497966f02ca3cdac2ffff2817592ac1a6232d1f2e768d25aaf0f
|
|
BLAKE2b-256 checksum How to use checksums |
0cd814bc68d0055ea4969aa84a669991bef9317d7d9cf0c2ad2ba9538cc9b631
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for queue-file 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.