Persistent queue for Python AsyncIO.
Project description
Persistent queue for Python AsyncIO.
Description
This library provides a persistent FIFO queue for Python AsyncIO:
Queue content can persist a process restart
Feature parity with Python’s asyncio.Queue
Similar API to Python’s asyncio.Queue
Sane logging
Type hints
Fully tested
Usage
Here is a basic example on how to use the queue:
import asyncio
from aiodiskqueue import Queue
async def main():
q = await Queue.create("example_queue.sqlite")
await q.put("some item")
item = await q.get()
print(item)
asyncio.run(main())
Please see the examples folder for more usage examples.
Installation
You can install this library directly from PyPI with the following command:
pip install aiodiskqueue
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
aiodiskqueue-0.1.0b2.tar.gz
(13.6 kB
view details)
Built Distribution
File details
Details for the file aiodiskqueue-0.1.0b2.tar.gz
.
File metadata
- Download URL: aiodiskqueue-0.1.0b2.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71f2b174aa6a35965668b9667fda159636774dab28b3894558ac2d9b4a0aeadd |
|
MD5 | 9521bb268cfd3185f7424ec9777bd71a |
|
BLAKE2b-256 | ba5f4410d02dcbf4e7ca9aac579f4a614af4ab99fb6d704e02a302413114d895 |
File details
Details for the file aiodiskqueue-0.1.0b2-py3-none-any.whl
.
File metadata
- Download URL: aiodiskqueue-0.1.0b2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eb91eabfda176e239f70190b74274412e4612de1a0daa4e91d8bd2bbb50def9 |
|
MD5 | a7aaa3c829bf7bb4c9757c8edc89e4be |
|
BLAKE2b-256 | 0dc8c92bf1608e54c8881fa8ef9f949ec749a5e214ac6419b295d4d5a95c1e6a |