📦 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())
Metadata
Release files for queus 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| queus-0.0.3.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| queus-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / queus-0.0.3.tar.gz
| Download URL | queus-0.0.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbe889094adc4bd0ac506c3326730f9810f3d3b72a8f2fa803c83fe8b22fd71e
|
|
BLAKE2b-256 checksum How to use checksums |
170c415a591bd83c726baf12ec7f69da31e5134f66cb65de60da8c0b217522ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / queus-0.0.3-py3-none-any.whl
| Download URL | queus-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12ba5ceae957af602412776b975f211c1c128b08ad7422582025702325bf1f22
|
|
BLAKE2b-256 checksum How to use checksums |
8294b7bdc826ddf25e7f86bfac662074e8dc9d49714108c363eee910a58b2483
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|