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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tasq_remote-0.6.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fbc1d5a8e8a5819f9c890a2be8f9558983d745dd255eaede40693fb2c3cf1e72
MD5 d44cf12c4a7cbd4ac3cf915e34f39bed
BLAKE2b-256 21ab432ef87bdf05fa2eefbae1f63c8564526e3e0fa787ebc7d328c5ee8b950f

See more details on using hashes here.

Provenance

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

This release

0.6.4 This release

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