Skip to main content

Async queue for Python.

Project description

Repid's logo

repid

PyPI version codecov Tests PyPI pyversions Code style: black


Repid is a job queuing library for Python with focus on simplicity.


pip install repid

Quickstart

Here is how the easiest example of producer-consumer application can look like.

Producer:

import asyncio
from repid import Repid, Job

Repid("amqp://user:password@localhost:5672")

async def main():
  myjob = Job(name="awesome_job")
  await myjob.queue.declare()
  await myjob.enqueue()

asyncio.run(main())

Consumer:

import asyncio
from repid import Repid, Worker, Job

Repid("amqp://user:password@localhost:5672")

myworker = Worker()

@myworker.actor()
async def awesome_job() -> None:
  print("Hello async jobs!")
  await do_some_async_stuff()

asyncio.run(myworker.run())

Check out user guide to learn more!

License

Repid is distributed under the terms of the MIT license. Please see License.md for more information.

Repid's logo is distributed under the terms of the CC BY-NC 4.0 license. It was originally created by ari_the_crow_.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

repid-1.0.0b2.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

repid-1.0.0b2-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file repid-1.0.0b2.tar.gz.

File metadata

  • Download URL: repid-1.0.0b2.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.1.1 CPython/3.8.13

File hashes

Hashes for repid-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 8314cfb813b50547f2fc77c6211ebdb144c5d3b965ef4370acf8748b7cb912c3
MD5 7fe54fecbd4bbc2f613eef0b32fd0999
BLAKE2b-256 374706041579000c315f16382568cdc1929d6c6a06f35b7a5d23c0daae4a395f

See more details on using hashes here.

File details

Details for the file repid-1.0.0b2-py3-none-any.whl.

File metadata

  • Download URL: repid-1.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.1.1 CPython/3.8.13

File hashes

Hashes for repid-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b6ec94a2278430dd3b7fa77ccf5447e8fad030211c6a2a1280557046e2dcba1
MD5 852c6b0b4342c8817a7e28bff3223940
BLAKE2b-256 ca040bf952da861337ff11d783651ec5767ff9e8b3e2dca76016e5a170e79161

See more details on using hashes here.

Supported by

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