Skip to main content

Python queue

Project description

📦 QUEUE

telegram badge telegram badge telegram badge

USAGE

Installation
pip install queus
Usage example
import asyncio
from Queue.functions import Queue
from Queue.functions import Queues

queue = Queue(workers=1)

async def runtask():
    print("Processing....")
    await asyncio.sleep(10)

async def main():
    tasks = ["Task01", "Task02"]
    for task in tasks:
        await queue.add(task)
    await queue.queue(task)
    await runtask()

"""
    await queue.remove(task)
           OR
    await Queue.remove(task)
"""
asyncio.run(main())

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

queus-0.0.3b2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

queus-0.0.3b2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file queus-0.0.3b2.tar.gz.

File metadata

  • Download URL: queus-0.0.3b2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for queus-0.0.3b2.tar.gz
Algorithm Hash digest
SHA256 650abd405e16b1a1d8c3bc69e3d550324b6070575cc3569b363743863bbcc711
MD5 6c683cc6203d6c1056a952bf06048f62
BLAKE2b-256 9c26419cff861c83a907a2154e2c538dd9b232e5deb28157b3430005d225b3f5

See more details on using hashes here.

File details

Details for the file queus-0.0.3b2-py3-none-any.whl.

File metadata

  • Download URL: queus-0.0.3b2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for queus-0.0.3b2-py3-none-any.whl
Algorithm Hash digest
SHA256 a0b4f3d5487e45160c5eda565ce0caa0b977c408f050d228538014e87f8a03e1
MD5 eee67c3b613476072721126bdd03e681
BLAKE2b-256 0bdab1c7f4a839a522bdccbe5b7d4ce9b05537fbfcf8517f472876c728a4db1e

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