Skip to main content

tasq-remote for Python

This is a thin synchronous client for the authenticated Tasq Server API. It does not embed Core, open SQLite, run migrations or reproduce authorization.

import os
from tasq_remote import TasqRemote, redeem_remote_enrollment

credential = redeem_remote_enrollment(
    endpoint="https://server.example/",
    workspace_id="operations/alpha",
    enrollment_token=os.environ["TASQ_ENROLLMENT_TOKEN"],
)

tasq = TasqRemote(
    endpoint="https://server.example/",
    workspace_id="operations/alpha",
    access_token=credential["accessToken"],
)

for item in tasq.list_commitments(limit=20)["items"]:
    print(item["id"], item["title"])

Mutations require an explicit resource, idempotency key and stable request ID:

result = tasq.execute_operation(
    "claim.acquire",
    resource={"kind": "commitment", "id": commitment_id},
    input={"leaseMs": 1_800_000},
    idempotency_key="worker-42-claim",
    request_id="worker-42-claim-request",
)

On an unknown transport result, repeat the exact operation, body, idempotency key and request ID. Do not invent success.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

tasq_remote-0.6.7-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file tasq_remote-0.6.7-py3-none-any.whl.

File metadata

  • Download URL: tasq_remote-0.6.7-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tasq_remote-0.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 04c4201aed29b942c9c041336475286b0110aa2d8e9d0944916299bd4e14778a
MD5 d27bd1f173f3b95b1bbe1602731f5707
BLAKE2b-256 35fb20fb7cee1593491d020309d1a06939a5fb17182d0960ecfd562968bd7c4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tasq_remote-0.6.7-py3-none-any.whl:

Publisher: publish-python.yml on gwendall/tasq

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

Release history Release notifications | RSS feed

0.6.8

1 file

This release

0.6.7 This release

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

1 file

0.6.3

1 file

0.4.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page