This release is a pre-release and may not be stable for production use.
orchestera-lib
Spark runtime configuration
OrchesteraSparkSession creates a client-mode Spark session from inside an
Orchestera notebook pod. It never selects an image, registry secret, service
account, or node placement on its own:
ORCH_SPARK_K8S_CONTAINER_IMAGEis required and must be the digest-pinned driver/executor image supplied by the notebook provisioner.ORCH_SPARK_K8S_NAMESPACEis required;ORCH_SPARK_K8S_SERVICE_ACCOUNTdefaults toworkloadand can be overridden for another tenant contract.ORCH_SPARK_K8S_NODE_SELECTORandORCH_SPARK_K8S_TOLERATIONSare optional JSON values copied into Spark's executor pod template.ORCH_SPARK_EVENT_LOG_DIRis optional. Event logging is disabled unless a directory is explicitly supplied.
The image must already contain matching Spark/PySpark and S3A/JDBC requirements. The library does not install packages at runtime or inject image pull credentials.
Minimal TUI
Run from a local checkout:
uv run python -m orchestera.tui.cli
Run after install (console script):
pip install orchestera-lib
orchestera-tui
Run with uvx:
uvx --from orchestera-lib orchestera-tui
Run with uvx from the current local repo:
uvx --from . orchestera-tui
Inside the TUI, run:
/start-proxy
Stop it with:
/stop-proxy
Update kube context with:
/update-cluster-context <cluster-name>
Upload IAM policy JSON to Parameter Store with:
/upload-iam-policy <cluster-name> <namespace> <alias>
Upload secrets JSON to Parameter Store with:
/upload-secrets <cluster-name> <namespace> <alias>
Exit the TUI with:
/exit
Commands support fuzzy matching, so close variants like /strt-proxy also work.
/update-cluster-context <cluster-name> runs:
aws eks update-kubeconfig --name <cluster-name> --region us-east-1 --profile orchestera-dev
/upload-iam-policy <cluster-name> <namespace> <alias> writes:
/orchestera/sparklith/<cluster-name>/<namespace>/iams/<alias>
/upload-secrets <cluster-name> <namespace> <alias> writes:
/orchestera/sparklith/<cluster-name>/<namespace>/secrets/<alias>
For both upload commands:
- TUI opens a multiline JSON editor.
Ctrl+Svalidates and uploads.Esccancels.- Uses AWS profile
orchestera-useradmin, regionus-east-1, and overwrites existing values.
This starts:
kubectl port-forward svc/traefik -n traefik 8080:80 3080:3080 9001:8080
Forwarded local ports:
808030809001
Metadata
Release files for orchestera-lib 0.1.0a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| orchestera_lib-0.1.0a4.tar.gz | 19.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| orchestera_lib-0.1.0a4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.7 kB
Release files / orchestera_lib-0.1.0a4.tar.gz
| Download URL | orchestera_lib-0.1.0a4.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ddebc395bab1352e08d7e0de55128603dcb14da1b879fc281a16c57d53e66f5
|
|
BLAKE2b-256 checksum How to use checksums |
36a239f14afa3794bf3b272c191264edaf7d181b2f518de5c7bb002386e5dbcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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 / orchestera_lib-0.1.0a4-py3-none-any.whl
| Download URL | orchestera_lib-0.1.0a4-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0357283a5b73485687f7ad200550543437a563f8b4cf3fcebf4bf5ba4143413
|
|
BLAKE2b-256 checksum How to use checksums |
fe2abc1f6cc8141546fe44cd28c9fe716478ed4c38a0c6ca23dfb0f88aabb3b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.15 {"installer":{"name":"uv","version":"0.12.15","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}
|