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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tasq_remote-0.4.0-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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e59bd0d3554cb94c2c1b086bff2760d53416142912c916e39bdb4bab99293c2
MD5 f34c611b141c0b0def23c26d3edcd575
BLAKE2b-256 5c371e3fcbff3dc38853ec1fdd8642c56dd8244c0b5f345ca5f1f23dd89a2217

See more details on using hashes here.

Provenance

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

0.6.5

1 file

0.6.4

1 file

0.6.3

1 file

This release

0.4.0 This release

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