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.3.tar.gz
(3.4 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
queus-0.0.3-py3-none-any.whl
(4.9 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbe889094adc4bd0ac506c3326730f9810f3d3b72a8f2fa803c83fe8b22fd71e
|
|
| MD5 |
d7ea885f621eca19d4a35bac3d28b826
|
|
| BLAKE2b-256 |
170c415a591bd83c726baf12ec7f69da31e5134f66cb65de60da8c0b217522ee
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12ba5ceae957af602412776b975f211c1c128b08ad7422582025702325bf1f22
|
|
| MD5 |
5efce141bcf3159b4278df01049eef82
|
|
| BLAKE2b-256 |
8294b7bdc826ddf25e7f86bfac662074e8dc9d49714108c363eee910a58b2483
|