Skip to main content

queue-file

Project description

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.

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

queue-file-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

queue_file-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: queue-file-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for queue-file-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c0c5f587d967b0bb217959349cc5e7ba382a5ae42fda59d500e49ce5a6a94d0
MD5 19d9209afe7afcd68364112e85ab257d
BLAKE2b-256 1c7e4e2dbeb8f82dd2872c7ee2770e7c9eaa88b2470baa9bbf51372a7ae592b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: queue_file-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for queue_file-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a830bfce3cd5497966f02ca3cdac2ffff2817592ac1a6232d1f2e768d25aaf0f
MD5 0ee7393ca87df5101ce6189bb4dc6b11
BLAKE2b-256 0cd814bc68d0055ea4969aa84a669991bef9317d7d9cf0c2ad2ba9538cc9b631

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page