Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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
Import and initialize the client:
from iomete_sdk.spark import SparkJobApiClient
from iomete_sdk.api_utils import ClientError
HOST = "<YOUR_DATAPLANE_HOST>" # https://dataplane-endpoint.example.com
API_KEY = "<YOU_IOMETE_API_KEY>"
job_client = SparkJobApiClient(
host=HOST,
api_key=API_KEY,
)
Create a new job:
response = job_client.create_job(payload={
"name": "job-name",
"template": {
"main_application_file": "local:///opt/spark/examples/jars/spark-examples_2.12-3.2.1-iomete.jar",
"main_class": "org.apache.spark.examples.SparkPi",
"arguments": ["10"]
}
})
job_id = response["id"]
Get jobs:
response = job_client.get_jobs()
Get job:
response = job_client.get_job(job_id=job_id)
Update job:
response = job_client.update_job(job_id=job_id, payload={
"template": {
"main_application_file": "local:///opt/spark/examples/jars/spark-examples_2.12-3.2.1-iomete.jar",
"main_class": "org.apache.spark.examples.SparkPi",
"arguments": ["10"]
}
})
Delete job:
response = job_client.delete_job(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(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)
Get Job Run Metrics:
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 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.