Skip to main content

pgtask

from __future__ import annotations

import asyncio
import os

from pgtask import Client, EnqueueRequest


async def main() -> None:
    client = await Client.connect(os.environ["PGTASK_DATABASE_URL"])
    task = await client.enqueue(EnqueueRequest("reports.render", {"report_id": "report-123"}))
    print(await task.result(timeout=30.0))


asyncio.run(main())

This package provides the Python producer client and worker runtime for pgtask. See the Python SDK documentation for workers, transactions, durable execution, signals, cancellation, and OpenTelemetry propagation.

Download files

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

Source Distribution

pgtask-0.1.3.tar.gz (164.2 kB view details)

Uploaded Source

Built Distributions

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

pgtask-0.1.3-cp310-abi3-win_amd64.whl (3.7 MB view details)

Uploaded CPython 3.10+Windows x86-64

pgtask-0.1.3-cp310-abi3-manylinux_2_28_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

pgtask-0.1.3-cp310-abi3-manylinux_2_28_aarch64.whl (4.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

pgtask-0.1.3-cp310-abi3-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

pgtask-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file pgtask-0.1.3.tar.gz.

File metadata

  • Download URL: pgtask-0.1.3.tar.gz
  • Upload date:
  • Size: 164.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pgtask-0.1.3.tar.gz
Algorithm Hash digest
SHA256 84ecaf38027a6bb3d38b9e3db76f224edec8ae050c354769be72805e02b17798
MD5 b9d8da82e8337de44f4dafef633b8f62
BLAKE2b-256 aed9600eaf46e41a553d86b7bdc0c56b5e01c4c25070f445028db3d57a1bf04c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgtask-0.1.3.tar.gz:

Publisher: release.yml on Kludex/pgtask

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgtask-0.1.3-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: pgtask-0.1.3-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pgtask-0.1.3-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0d53d9aaae7331fc6dad22bc34c9e68c24eb4b617b875e0d1b02b1106b2bc7cd
MD5 4faabff3c6f0de98e3a058b02d702fb6
BLAKE2b-256 5bf95c452c9c9e778dee26b4deb06c6a08d020ce5c1b68bd52bb263117fec6a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgtask-0.1.3-cp310-abi3-win_amd64.whl:

Publisher: release.yml on Kludex/pgtask

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgtask-0.1.3-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pgtask-0.1.3-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c05d6de095cbd026492bdc096d887d12a9b773dffcac11273312340b72991a0d
MD5 77e35e7364b1882ae901df3cfa686044
BLAKE2b-256 9673b4026c3cbddcc138733f980a69d03956badac440aa96aaa77f53a74c2eec

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgtask-0.1.3-cp310-abi3-manylinux_2_28_x86_64.whl:

Publisher: release.yml on Kludex/pgtask

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgtask-0.1.3-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pgtask-0.1.3-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c89b98f48653b8fc41064cb4795e4fcaefa54427921f225b4d6a17f9d9ff512d
MD5 f67525f19d7ef09f9ea76922b58282c2
BLAKE2b-256 0f530411b80ac7d635450b6aa36a32cc83e9f7318fe688385d3ff21580c8fb74

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgtask-0.1.3-cp310-abi3-manylinux_2_28_aarch64.whl:

Publisher: release.yml on Kludex/pgtask

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgtask-0.1.3-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pgtask-0.1.3-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33051377f3a53b00d836eec06ed185922e0e0433363e9a8e401e813b6dd76b1d
MD5 34cc7f1e98cd3cb196469157d172e31e
BLAKE2b-256 b5054f0a7c09fc58e5bd4531e5567d08df065700fe83c53b1c62802dfab1e717

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgtask-0.1.3-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on Kludex/pgtask

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pgtask-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pgtask-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0ca7e468e9d359d45fbf7bbd44075b808b62cd0bbdd54f97b9f7cbce3abeba5d
MD5 50162e1f4f2de92237e016cbf7a673d7
BLAKE2b-256 e216049e78132e91cb4178382119b7ab71119571f6d701230cf84ed7713c6801

See more details on using hashes here.

Provenance

The following attestation bundles were made for pgtask-0.1.3-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on Kludex/pgtask

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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