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.3b3.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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d050252d2bb4f6261cbdf6b80dc8906644d4932ea4d7ab99896f1cb671c87be2
|
|
| MD5 |
b113cbfea40589b915d0ceff49c6f318
|
|
| BLAKE2b-256 |
52efbfc498d1b20898bb6e06ad36d9d380d6b2b7a04efaee356a44b63a6ec365
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f13252e4db65f52337d332fcf69138debdb9bbd95a1146b80e02306d35b7d7ab
|
|
| MD5 |
05857de86ac20a8165d01decf0cf1e27
|
|
| BLAKE2b-256 |
bf764ab86460292481403063f45a368e3e2d5eadcfae7905fe4cb59fee09811b
|