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():
  await Job(name="awesome_job").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.0b5.tar.gz (21.4 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.0b5-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for repid-1.0.0b5.tar.gz
Algorithm Hash digest
SHA256 061d86774d56bbcf47703e93bc922f5cf895fc00278da1e685caf651ed812bfb
MD5 3354a0297295e2fd98e2bdb06f2d0710
BLAKE2b-256 47972b99e245e0a1d5b768af455f5fcafbd81f5d73360519f7ab6f81668da74b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for repid-1.0.0b5-py3-none-any.whl
Algorithm Hash digest
SHA256 364c1eeb53b705f114d9a8e21d8b4d3f8ced49191cf12c3f2bad9aba106eefe0
MD5 9402873d18a415b1d507c11bee1ed8a7
BLAKE2b-256 bde08c818baf263081f16a80ead403ecae8a8fbcc02d1e48a668be956a2b8975

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