Python queue
Project description
📦 QUEUE
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bb0e6a3d5eafba1ba189ec32496cbc855cccab4d709c3369ab5f056ea879d47
|
|
| MD5 |
82c4bdd20c233599d62bf6c0470aab04
|
|
| BLAKE2b-256 |
a3bcc71fbf4c3ba39049dd9652a54e75b8a617a443fe1175c924229cb8e7a60e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac02da9e2ed66d36d1185f1f75f5f3b3a1e48d74762a1ea92119c6278f855f7e
|
|
| MD5 |
f6e0a2126a42d8eef11553d69f0a6ed1
|
|
| BLAKE2b-256 |
fc4d53927a4ac2b159294680df6c37dc56768dd0e44c03f8eea17e89694aaade
|