IOMETE SDK
This is the IOMETE SDK for Python. It provides convenient access to the IOMETE API from applications written in the Python language.
Installation
Install the package with:
pip install iomete-sdk
Usage - Spark Job API
Import and initialize the client
from iomete_sdk.spark import SparkJobApiClient
from iomete_sdk.spark.spark_job import Flow, Priority
HOST = "<DATAPLANE_HOST>" # https://dataplane-endpoint.example.com
API_KEY = "<IOMETE_API_KEY>"
DOMAIN = "<IOMETE_DOMAIN>"
job_client = SparkJobApiClient(
host=HOST,
api_key=API_KEY,
domain=DOMAIN
)
Enums
The SDK provides strict enum validation for flow and priority fields:
- Flow:
Flow.LEGACY("LEGACY"),Flow.PRIORITY("PRIORITY") - Priority:
Priority.NORMAL("NORMAL"),Priority.HIGH("HIGH")
Create a new job
response = job_client.create_job(payload={
"name": "job-name",
"bundleId": "bundle-id",
"flow": Flow.LEGACY.value,
"priority": Priority.NORMAL.value,
"namespace": "k8s-namespace",
"jobUser": "job-user",
"jobType": "MANUAL/SCHEDULED/STREAMING",
"template": {
"applicationType": "python",
"image": f"iomete/spark-py:3.5.3-v1",
"mainApplicationFile": "path/to/job.py",
"configMaps": [{
"key": "application.conf",
"content": "[SELECT 1]",
"mountPath": "/etc/configs"
}],
"deps": {
"pyFiles": ["path/to/dependencies.zip"]
},
"instanceConfig": {
"singleNodeDeployment": False, "driverType": "driver-x-small",
"executorType": "exec-x-small", "executorCount": 1
},
"restartPolicy": {"type": "Never"},
"maxExecutionDurationSeconds": "max-execution-duration",
"volumeId": "volume-id",
}
})
job_id = response["id"]
Note: bundleId is required. flow and priority are optional but validated against enum values if provided.
Get jobs
response = job_client.get_jobs()
Get job by ID
response = job_client.get_job_by_id(job_id=job_id)
Get job by name
response = job_client.get_job_by_name(job_name="job-name")
Update job
response = job_client.update_job(job_id=job_id, payload=updated_payload)
Delete job
response = job_client.delete_job_by_id(job_id=job_id)
Submit job run
response = job_client.submit_job_run(job_id=job_id, payload={})
Cancel job run
response = job_client.cancel_job_run(job_id=job_id, run_id=run_id)
Get Job Runs
response = job_client.get_job_runs(job_id=job_id)
Get Job Run
response = job_client.get_job_run_by_id(job_id=job_id, run_id=run_id)
Get Job Run Logs
response = job_client.get_job_run_logs(job_id=job_id, run_id=run_id, time_range="5m")
Supported Time Range: 5m, 15m, 30m, 1h, 3h, 6h, 12h, 24h, 2d, 7d, 14d, 30d
Get Job Run Metrics
response = job_client.get_job_run_metrics(job_id=job_id, run_id=run_id)
Metadata
Release files for iomete-sdk 3.1.1
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 | |
|---|---|---|---|---|
| iomete_sdk-3.1.1.tar.gz | 10.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iomete_sdk-3.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / iomete_sdk-3.1.1.tar.gz
| Download URL | iomete_sdk-3.1.1.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ff83d56be902bd5e3c853604f4366ba48f8056b725ee4b2824264b1712c1315
|
|
BLAKE2b-256 checksum How to use checksums |
30a84c27db84e3f0ca537bca6da77c020878486255091da7a0a4da0a0689c0fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / iomete_sdk-3.1.1-py3-none-any.whl
| Download URL | iomete_sdk-3.1.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94aff813dfd2dd77696218863056802079e7232b5820651ac7137768edf7c609
|
|
BLAKE2b-256 checksum How to use checksums |
35b28fd9ccbdca4dc2d9b7b967013f4e0832e69c9c5701aa1d8a33a56f5beb04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for iomete-sdk 3.1.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.