Skip to main content

Persistent queues for Python AsyncIO.

Project description

Persistent queues for Python AsyncIO.

release python tests codecov docs pre-commit Code style: black

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 = Queue("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


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.0a3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

aiodiskqueue-0.1.0a3-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file aiodiskqueue-0.1.0a3.tar.gz.

File metadata

  • Download URL: aiodiskqueue-0.1.0a3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for aiodiskqueue-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 16d9611618fff8092ca81066b6206a8170efaf23c1ea9756fb1fcc4627e43b64
MD5 b53bf3c31b55739e1c37f13a66895f72
BLAKE2b-256 6272309dde6a3091a0c1db2bc37e622c5082ebd006e786c9b50fc8fcb6dc75e6

See more details on using hashes here.

File details

Details for the file aiodiskqueue-0.1.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for aiodiskqueue-0.1.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 4714621aa9c9b6488a0afeaa088f0280867587a43b2301bc9659a63eb6db939e
MD5 c45cb66607d4ce8d4213675335875c4a
BLAKE2b-256 c94fc64ef1f0784e2e1f60536a6d0922cc3e0aa3f6a40728f226fb610a6107a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page