Skip to main content

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)
  • Structured logging — configure_logging(), bind_nats_context(), nats_handler_context() (logging.py)
  • Distributed tracing — OpenTelemetry W3C Traceparent propagation via NATS headers (tracing.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

Metadata

Release files for spark-advisor-models 0.1.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spark-advisor-models 0.1.21
File Size Uploaded Provenance Actions
spark_advisor_models-0.1.21.tar.gz 16.9 kB Without provenance Details for spark_advisor_models-0.1.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spark-advisor-models 0.1.21
File Interpreter ABI Platform Actions
spark_advisor_models-0.1.21-py3-none-any.whl Python 3 none any Details for spark_advisor_models-0.1.21-py3-none-any.whl

Total release size: 36.7 kB

Release files / spark_advisor_models-0.1.21.tar.gz

Download URL spark_advisor_models-0.1.21.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a3d8543c7d9b45ce774dbd0651545fd97e0b88af6a2f66ef59382faf4d2c7180
BLAKE2b-256 checksum
How to use checksums
87e0a538954da6909c749246c91f82d1347bc4d640ac3dcc12d1d76e30e0dfad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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 / spark_advisor_models-0.1.21-py3-none-any.whl

Download URL spark_advisor_models-0.1.21-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbaabc161e4bb5614abcf1c4582a0bb935444dee9be042a2b6092e82177780bc
BLAKE2b-256 checksum
How to use checksums
5443bc2a911604b2cf0fa946c12d4232174e690bb6b6e69c8e15d3aba5af6603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","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 spark-advisor-models 0.1.21

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page