haps-runtime
Maintainer library for the HAPS platform: declare a runtime, collect the jobs waiting on it, report their status and hand their results back.
To publish applications or submit jobs, see
haps-client. To run the execution
daemon, see haps-runtime-executor.
Install
pip install haps-runtime
Requires Python 3.11 or newer.
Quick start
from haps_runtime import HapsClient
client = HapsClient(
ebservice_url="https://ebservice.example.org/api/v1",
ebuffer_url="https://ebuffer.example.org/api/v1",
username="maintainer",
password="secret",
)
runtime = client.runtimes.create(
{"name": "echo", "accepted_mime_type": "application/x-echo", "tags": ["echo"]}
)
for job in runtime.list_jobs(runstatus="PENDING"):
job.set_status("PROCESSING")
job.push_results(["done"])
job.set_status("COMPLETED")
client.close()
Errors
Every API error is an ebcommon MessageException:
from haps_runtime import MessageException
try:
client.runtimes.get(uid)
except MessageException as e:
print(e.status_code, e.url, e.message.name)
status_code is None when the server could not be reached.
License
MIT
Metadata
Release files for haps-runtime 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| haps_runtime-0.5.0.tar.gz | 26.4 kB | Without provenance | Details for haps_runtime-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| haps_runtime-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for haps_runtime-0.5.0-py3-none-any.whl |
Total release size: 61.2 kB
Release files / haps_runtime-0.5.0.tar.gz
| Download URL | haps_runtime-0.5.0.tar.gz |
|---|---|
| Size | 26.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
841df7f932a9c7fbf839d9106bd83ecfb14b911db6f43c93ac0fb662104fe60d
|
|
BLAKE2b-256 checksum How to use checksums |
05a9de3673feb48672dd64ea1981a9daa4d0d94ab7de1845e493bffeb7357428
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / haps_runtime-0.5.0-py3-none-any.whl
| Download URL | haps_runtime-0.5.0-py3-none-any.whl |
|---|---|
| Size | 34.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e33de8e2feb2abf45379978ac9e983dc94b3891c5b134b4da8471111aee5768f
|
|
BLAKE2b-256 checksum How to use checksums |
41c76eade3e02fcd12fff08865c71e40dd2b1300db7e800dabdae82da7a6bcbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for haps-runtime 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.