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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tasq_remote-0.6.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2976b8bd147aa64cf6324bd48cee930dda2eaa01aba8a57278158839ed0baf6a
MD5 6128ce916246672d78c4bc734e338298
BLAKE2b-256 45b7d9c2d882ca1a9963d665104258fae9b562d3c1d63fcd33dba0e04977e100

See more details on using hashes here.

Provenance

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

This release

0.6.6 This release

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