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.

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


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

Uploaded Source

Built Distribution

aiodiskqueue-0.1.0a5-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiodiskqueue-0.1.0a5.tar.gz
Algorithm Hash digest
SHA256 114871d81ac91f2c64ad8afcf9fe0cce1d37c51f825604383645f5776cef9850
MD5 4bd21b314582804e884107da52123df1
BLAKE2b-256 40874380a8beda5228ecc84d771f4f83a1918fa4f71ea9237ef6b91b12157bb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aiodiskqueue-0.1.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 234d5d8db30f5df1d42f0fab5d397d1851dff144abda52f0ad39a127f8a3ad40
MD5 6acbf3fe3945a86560f71bd7f8c8ec4f
BLAKE2b-256 74776f9ed67a566a2a5bfbb672cdddd0fda3e0523dbdee1a5018b65f0b2ccdeb

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