Skip to main content

mesa-runtime/lib

A client for dispatching and following MESA training and inference runs through the automations API.

Usage

from mesa_runtime import MesaRuntime

client = MesaRuntime("https://example.cloudfront.net", "username", "password")

run_id = client.dispatch("batch-2026-01", "foo", "onco")
print(client.get_run(run_id))

Batch inference uploads the batch file with the caller's AWS credentials:

run_id = client.run_batch_inference("foo/bar", "qux.jsonl", "quux", "baz")
print(client.get_run(run_id))

Listing training data also uses the caller's AWS credentials, which need s3:ListBucket on aicentre-nlpteam-mesa-build.

A config file passed to dispatch or run_batch_inference replaces the flow's default config in full, so start from a copy of the defaults in automations' flows/configs/mesa. The flow's own inference endpoint, storage type and storage paths override any set in it.

API

Method Description
list_training_data() List available training data objects from S3
dispatch(training_batch_name, model_name, schema, ...) Trigger a training run, returns its ID
get_run(run_id) Fetch a single training or inference run by ID
list_runs() List the ten most recent training runs
list_queued_runs() List the training runs waiting to start
cancel(run_id) Cancel a training or inference run
get_logs(run_id) Fetch the logs of a training or inference run
get_runner_status() Get the work pool's online/busy status
run_batch_inference(job_id, batch_file, bucket, model_id, ...) Upload a Bedrock batch file and trigger an inference run, returns its ID (omit model_id to split across every endpoint model; pass schema_name and schema_version to name the output schema)
list_inference_runs() List the ten most recent inference runs

Metadata

Release files for londonaicentre-mesa-runtime 0.6.0

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

Source distribution (sdist)

Source distribution for londonaicentre-mesa-runtime 0.6.0
File Size Uploaded Provenance Actions
londonaicentre_mesa_runtime-0.6.0.tar.gz 5.5 kB Without provenance Details for londonaicentre_mesa_runtime-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for londonaicentre-mesa-runtime 0.6.0
File Interpreter ABI Platform Actions
londonaicentre_mesa_runtime-0.6.0-py3-none-any.whl Python 3 none any Details for londonaicentre_mesa_runtime-0.6.0-py3-none-any.whl

Total release size: 12.2 kB

Release files / londonaicentre_mesa_runtime-0.6.0.tar.gz

Download URL londonaicentre_mesa_runtime-0.6.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1912567351c3c0383b7d652755e077f06e88ea8c61ca3dedbac022a0e0e7d3fb
BLAKE2b-256 checksum
How to use checksums
de3007b42cd1b7e38ecdf8ac2fb0403b5069d08bcfa405066bebc2ff0491438a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / londonaicentre_mesa_runtime-0.6.0-py3-none-any.whl

Download URL londonaicentre_mesa_runtime-0.6.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
030eaac9a3807b600cb3127584fdb132dc870ce41f1b17293a4f48bca7b0c007
BLAKE2b-256 checksum
How to use checksums
22954621e345639c18cf7d698336581b2d50215bb8665b38248658813f66983e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for londonaicentre-mesa-runtime 0.6.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.

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