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.3.tar.gz (3.4 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.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: queus-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 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.3.tar.gz
Algorithm Hash digest
SHA256 cbe889094adc4bd0ac506c3326730f9810f3d3b72a8f2fa803c83fe8b22fd71e
MD5 d7ea885f621eca19d4a35bac3d28b826
BLAKE2b-256 170c415a591bd83c726baf12ec7f69da31e5134f66cb65de60da8c0b217522ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: queus-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 12ba5ceae957af602412776b975f211c1c128b08ad7422582025702325bf1f22
MD5 5efce141bcf3159b4278df01049eef82
BLAKE2b-256 8294b7bdc826ddf25e7f86bfac662074e8dc9d49714108c363eee910a58b2483

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