Ilum Job API Python Package
This package provides an interface for interacting with Ilum's Job API using Python. With this package, you can create your own interactive spark job.
Installation
Use pip to install the ilum-job-api package:
pip install ilum-job-api
Usage
Here's a simple example of how to use it:
from ilum.api import IlumJob
from random import random
from operator import add
class SparkPiInteractiveExample(IlumJob):
def run(self, spark, config):
partitions = int(config.get('partitions', '5'))
n = 100000 * partitions
def f(_: int) -> float:
x = random() * 2 - 1
y = random() * 2 - 1
return 1 if x ** 2 + y ** 2 <= 1 else 0
count = spark.sparkContext.parallelize(range(1, n + 1), partitions).map(f).reduce(add)
return "Pi is roughly %f" % (4.0 * count / n)
For more detailed usage instructions, see our Documentation and API Reference.
License
This project is licensed under the terms of the Apache License 2.0.
Contact
If you have any issues or feature requests, please create an idea on our board. For general questions or discussions, post a question here.
Metadata
Release files for ilum-job-api 6.7.3
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 | Actions |
|---|---|---|---|---|
| ilum_job_api-6.7.3.tar.gz | 2.4 kB | Without provenance | Details for ilum_job_api-6.7.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ilum_job_api-6.7.3-py3-none-any.whl | Python 3 | none | any | Details for ilum_job_api-6.7.3-py3-none-any.whl |
Total release size: 5.0 kB
Release files / ilum_job_api-6.7.3.tar.gz
| Download URL | ilum_job_api-6.7.3.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b9c5e3a3a1407f3f4e282b2ac2edd96af931d225550f3eb3e5afe8c2427b818
|
|
BLAKE2b-256 checksum How to use checksums |
b8a24b5535b8a65ab096f9969ea32ae433b091aca8cf90fb1f0a2eb6f3baad39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / ilum_job_api-6.7.3-py3-none-any.whl
| Download URL | ilum_job_api-6.7.3-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b484c1fd584b5c53d9e1b8faaa47cce4bd1bd017a008698295a2b31b84c084b
|
|
BLAKE2b-256 checksum How to use checksums |
65f0f79b3b5f7134d95e4bb4c0997cd2e4dbd992ad19bb6f8d0bb68105aa93ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for ilum-job-api 6.7.3
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.