Shared Pydantic contracts for spark-advisor microservices
Project description
spark-advisor-models
Shared Pydantic models and configuration for the spark-advisor ecosystem.
Install
pip install spark-advisor-models
What's inside
- Spark job metrics — stages, executors, tasks, quantile distributions (
model/metrics.py) - Analysis output — recommendations, severity levels, causal chains (
model/output.py) - AI tool schemas — input/output models for Claude API, generated from Pydantic (
model/input.py) - Spark config wrapper — typed access to spark.* properties (
model/spark_config.py) - Shared configuration — rule thresholds, AI settings, NATS settings (
config.py,settings.py) - Utilities — byte formatting, statistics helpers (
util/)
Usage
from spark_advisor_models.model.metrics import JobAnalysis, StageMetrics
from spark_advisor_models.config import Thresholds, AiSettings
Links
License
Apache 2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spark_advisor_models-0.1.7.tar.gz.
File metadata
- Download URL: spark_advisor_models-0.1.7.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82d292ec1de6c66a97f1d48e891151be742c50035adf050d1fe6f2c53efe9570
|
|
| MD5 |
e505c5a7ac2802f2e782dabeacab5e36
|
|
| BLAKE2b-256 |
dcae888574884840f37492db548f28e8eb6d16131a96bf5d36101cb0be3ae57d
|
File details
Details for the file spark_advisor_models-0.1.7-py3-none-any.whl.
File metadata
- Download URL: spark_advisor_models-0.1.7-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82876bf52f7b96335620872d3b483a66931021f32aedf5b19a061bca21ba987d
|
|
| MD5 |
287c4e70d712269194682b73ff2a4ad1
|
|
| BLAKE2b-256 |
16854c3b1424361bf8787aa31da81a001533593607e565a2fe53dc1a794347c4
|