Skip to main content

Transport-agnostic async task queue using JSON-RPC 2.0

Project description

PlanQ

CI codecov PyPI Python versions License


PlanQ is a transport-agnostic async task queue for Python. Define a task once and run it over an in-memory, Redis, or SQS broker — the wire format is JSON-RPC 2.0, so producers and consumers stay decoupled from the transport.

Installation

pip install planq            # in-memory only
pip install "planq[redis]"   # Redis broker
pip install "planq[sqs]"     # AWS SQS broker

Example

from planq import Planq
from planq.providers.memory import InMemoryBroker

app = Planq(broker=InMemoryBroker())

@app.task()
async def greet(name: str, say: str = "hi") -> None:
    print(f"{say}, {name}!")

await greet.send("world")   # enqueue

License

Apache-2.0

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

planq-0.1.9.tar.gz (62.5 kB view details)

Uploaded Source

Built Distribution

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

planq-0.1.9-py3-none-any.whl (72.0 kB view details)

Uploaded Python 3

File details

Details for the file planq-0.1.9.tar.gz.

File metadata

  • Download URL: planq-0.1.9.tar.gz
  • Upload date:
  • Size: 62.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for planq-0.1.9.tar.gz
Algorithm Hash digest
SHA256 9b7bb504378d4bff7c4f17f51942ae176cbc0d14fe13682c930e236983ab4f96
MD5 1ee46fc45e630bd677789e191efc542f
BLAKE2b-256 a48c7ca3f4740ccafe32038b7370668fe6b238e064c71fe409742b6545300d60

See more details on using hashes here.

File details

Details for the file planq-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: planq-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 72.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for planq-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2b186fef3eb1b7a3cf646d9eed15e459ab7a9380b79e13df8e5227ec8f3ebf8b
MD5 f45d1dd70e9fedf31616dece320bbfcd
BLAKE2b-256 d9f75c989e7610c7b6ebe01c6262dfedae44657f9955355150a50cf7b75fe545

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