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.3b1.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.3b1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: queus-0.0.3b1.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.3b1.tar.gz
Algorithm Hash digest
SHA256 8bb0e6a3d5eafba1ba189ec32496cbc855cccab4d709c3369ab5f056ea879d47
MD5 82c4bdd20c233599d62bf6c0470aab04
BLAKE2b-256 a3bcc71fbf4c3ba39049dd9652a54e75b8a617a443fe1175c924229cb8e7a60e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: queus-0.0.3b1-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.3b1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac02da9e2ed66d36d1185f1f75f5f3b3a1e48d74762a1ea92119c6278f855f7e
MD5 f6e0a2126a42d8eef11553d69f0a6ed1
BLAKE2b-256 fc4d53927a4ac2b159294680df6c37dc56768dd0e44c03f8eea17e89694aaade

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