Skip to main content

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.

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)

Source distribution for queue-file 0.1.0
File Size Uploaded
queue-file-0.1.0.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for queue-file 0.1.0
File Interpreter ABI Platform
queue_file-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page