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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2976b8bd147aa64cf6324bd48cee930dda2eaa01aba8a57278158839ed0baf6a
|
|
| MD5 |
6128ce916246672d78c4bc734e338298
|
|
| BLAKE2b-256 |
45b7d9c2d882ca1a9963d665104258fae9b562d3c1d63fcd33dba0e04977e100
|
Provenance
The following attestation bundles were made for tasq_remote-0.6.6-py3-none-any.whl:
Publisher:
publish-python.yml on gwendall/tasq
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tasq_remote-0.6.6-py3-none-any.whl -
Subject digest:
2976b8bd147aa64cf6324bd48cee930dda2eaa01aba8a57278158839ed0baf6a - Sigstore transparency entry: 2785592589
- Sigstore integration time:
-
Permalink:
gwendall/tasq@dffd2d01e18681c215525b5a047fca67544d58d2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/gwendall
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@dffd2d01e18681c215525b5a047fca67544d58d2 -
Trigger Event:
workflow_dispatch
-
Statement type: