
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
This is the IOMETE SDK for Python. It provides convenient access to the IOMETE API from applications written in the Python language.
Install the package with:
pip install iomete-sdk
from iomete_sdk.spark import SparkJobApiClient
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
)
response = job_client.create_job(payload={
"name": "job-name",
"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"]
response = job_client.get_jobs()
response = job_client.get_job(job_id=job_id)
response = job_client.update_job(job_id=job_id, payload=updated_payload)
response = job_client.delete_job(job_id=job_id)
response = job_client.submit_job_run(job_id=job_id, payload={})
response = job_client.cancel_job_run(job_id=job_id, run_id=run_id)
response = job_client.get_job_runs(job_id=job_id)
response = job_client.get_job_run(job_id=job_id, run_id=run_id)
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
response = job_client.get_job_run_metrics(job_id=job_id, run_id=run_id)
FAQs
IOMETE SDK for Python.
We found that iomete-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.