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 is preserved after a by process restart
Feature parity with Python’s asyncio.Queue
Similar API to Python’s asyncio.Queue
Designed for durability and decent performance
Sane logging
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.0a9.tar.gz
(13.3 kB
view details)
Built Distribution
File details
Details for the file aiodiskqueue-0.1.0a9.tar.gz
.
File metadata
- Download URL: aiodiskqueue-0.1.0a9.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81e899d7a4d78f89c02e5bbf7c60ae8a6a485a4a682060d95919c38323ec9a79 |
|
MD5 | 5a7cbe5f410457400b6aa0a8fd282bc3 |
|
BLAKE2b-256 | fc6c07117aefcd2745df529aaece1dcd00be5a80c0ba01e6f23d72c4150acbcf |
File details
Details for the file aiodiskqueue-0.1.0a9-py3-none-any.whl
.
File metadata
- Download URL: aiodiskqueue-0.1.0a9-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e12056fb4bcc9f5c7b56e9d15a7b080324a434868fc9015946bf207ec908424 |
|
MD5 | 6f862c4a16dd43889f7d21c3bb7ef237 |
|
BLAKE2b-256 | f5019f5c1cf28a446cba2c5453e0449608c19de476d5e422fd9f45393bd82610 |