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.5-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tasq_remote-0.6.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 82f9091a5b62df9e70c4d3f1d451b69643ae0cba83d84ba6b49d6ce51eda0dce
MD5 fd4909e117c2a9d9c400301237c57872
BLAKE2b-256 03875970765172af92c9dc1987d9cba6ee5efb4eea90bd00d855581972591cc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for tasq_remote-0.6.5-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

0.6.7

1 file

0.6.6

1 file

This release

0.6.5 This release

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