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

Uploaded Source

Built Distribution

aiodiskqueue-0.1.0b5-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiodiskqueue-0.1.0b5.tar.gz
Algorithm Hash digest
SHA256 015f0b1e63cac6da3566451044b2dfd58cbbcebe549136b4bf11d3e2b2b2480e
MD5 16d69fbb41318bcd67036d9ab0d1a728
BLAKE2b-256 ea59f055feaa9cb298be0ecafaa3125781c80a9098fdc99b2af293873489fc99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aiodiskqueue-0.1.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 305b5ca3fd6fe1bcd07832f2150bb6731d402a5c0b659aefa42016d7ecf30047
MD5 2611109c328951f82df0d9e2ea9e77e9
BLAKE2b-256 8c76e2942e34f01bd33556cbd48187f7c38653986e82d5baf2fdf94231807ef1

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