Persistent queues for Python AsyncIO.
Project description
Persistent queues for Python AsyncIO.
Description
This library provides a persistent queue for Python AsyncIO.
It’s main advantage is that it’s content will survive a normal process restart and potentially even a process crash.
Each queue is stored in it’s own SQLite database on disk to provide maximum isolation between queues. Using SQLite should also make the queue inherently process safe [needs confirmation].
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 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.0a2.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for aiodiskqueue-0.1.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d70bf06207dee157e68ea02591594cde1b1ec2af6dae460ff0dafe7a87bce0e5 |
|
MD5 | 7bf2add4d56fcd171bbde33ab5db6474 |
|
BLAKE2b-256 | cd967ff397a095676e72868b6f3ab80dc4026ca253585c0b7c888b8135f1ef5c |