Skip to main content

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.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for haps-runtime 0.4.1
File Size Uploaded Provenance Actions
haps_runtime-0.4.1.tar.gz 26.7 kB Without provenance Details for haps_runtime-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for haps-runtime 0.4.1
File Interpreter ABI Platform Actions
haps_runtime-0.4.1-py3-none-any.whl Python 3 none any Details for haps_runtime-0.4.1-py3-none-any.whl

Total release size: 61.7 kB

Release files / haps_runtime-0.4.1.tar.gz

Download URL haps_runtime-0.4.1.tar.gz
Size 26.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c8aca12fbf54d1c89687df864474bf5d9456453dcd975d44b6aaabe6770df687
BLAKE2b-256 checksum
How to use checksums
6cd53e1f020053b2bf58498fc6212407a6d483c3b9ee1b9364c3aadc848a2167
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.4.1-py3-none-any.whl

Download URL haps_runtime-0.4.1-py3-none-any.whl
Size 35.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee03dad450e50eb4dff1265ca29d1b9ba5cbe34e50a0cdf20c883814ba091b3e
BLAKE2b-256 checksum
How to use checksums
b09eade1b7fc34ba4592fe28a61c7a0b619067624647139a91f9242ef19c7f5c
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.4.1

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.

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