Skip to main content

Persistent queue for Python AsyncIO.

Project description

Persistent queue for Python AsyncIO.

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

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


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

Uploaded Source

Built Distribution

aiodiskqueue-0.1.0b1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiodiskqueue-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 79874f627b6ae38b4cc5bb834f17bbdeb906881ae4cb164cb50d2d6ea938a030
MD5 8a593fe49c514220b3cc87f4a35ec27f
BLAKE2b-256 01d48a9b5909bda24efa707ad98b3c13833bd87b438fabb289f5c1d138eae6d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aiodiskqueue-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 9732725a568d9f06b6d6d27e1d54d2366696b95e8122b243710412fe85ea0709
MD5 6058b17d02a0ab1e20edc74cc28c7077
BLAKE2b-256 b93c663428e7ceaca624dbda2d4261e7db8a6efc5263705d17a395bc4e1ad328

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