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

Uploaded Python 3

File details

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

File metadata

  • Download URL: queus-0.0.3b3.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.3b3.tar.gz
Algorithm Hash digest
SHA256 d050252d2bb4f6261cbdf6b80dc8906644d4932ea4d7ab99896f1cb671c87be2
MD5 b113cbfea40589b915d0ceff49c6f318
BLAKE2b-256 52efbfc498d1b20898bb6e06ad36d9d380d6b2b7a04efaee356a44b63a6ec365

See more details on using hashes here.

File details

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

File metadata

  • Download URL: queus-0.0.3b3-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.3b3-py3-none-any.whl
Algorithm Hash digest
SHA256 f13252e4db65f52337d332fcf69138debdb9bbd95a1146b80e02306d35b7d7ab
MD5 05857de86ac20a8165d01decf0cf1e27
BLAKE2b-256 bf764ab86460292481403063f45a368e3e2d5eadcfae7905fe4cb59fee09811b

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