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 queue for Python AsyncIO.

It has an API similar to the standard asyncio.Queue, but items in the queue will persists between process restarts.

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

Uploaded Source

Built Distribution

aiodiskqueue-0.1.0a6-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for aiodiskqueue-0.1.0a6.tar.gz
Algorithm Hash digest
SHA256 edf32c84189c0bfb4a8c828a4efd524982e657b36dc9f8d6eeda92ed8af11f46
MD5 4b64376433bf449cddca8c70fb44e938
BLAKE2b-256 6316c6d0676ed5cf0ad920b0dfa08d1866dd832842c95d07917526a720462c7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aiodiskqueue-0.1.0a6-py3-none-any.whl
Algorithm Hash digest
SHA256 f2cb630bfcd9eed1e2ef38f68767cd5e6d34d9ab722ed97c84a98e50420af34f
MD5 fe88b91684774e3f0021f02891938749
BLAKE2b-256 5dbaf460eff99b877fcdd4c682766f4efea9bc117c2e1b39e56561e5ca54a43e

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