pyspark-contracts
Lightweight schema and data quality validation for PySpark DataFrames.
Full documentation: pyspark-contracts.readthedocs.io · What's next: ROADMAP.md
Validates at runtime — before your pipeline runs — with a structured JSON report queryable in CloudWatch Logs Insights, Datadog, or any log aggregator.
Install
pip install pyspark-contracts
PySpark is assumed to be on your classpath (Glue, Databricks, EMR).
For local development: pip install pyspark-contracts[pyspark]
Tested on PySpark 3.3–4.x and Python 3.10–3.14, in both classic mode and Spark Connect.
Quick start
from pyspark.sql.types import DateType, FloatType, StringType
from pyspark_contracts import Contract, Field
class OdometerContract(Contract):
vin = Field(StringType(), nullable=False, min_length=17, max_length=17)
odometerStart = Field(FloatType(), nullable=False, min_value=0)
odometerEnd = Field(FloatType(), nullable=False, min_value=0)
readingDate = Field(DateType())
# Hard fail (default) — logs ERROR + raises ContractViolationError
OdometerContract().validate(df)
# Soft fail — logs WARNING + returns ViolationReport
report = OdometerContract().validate(df, mode="soft")
if report:
print(f"{len(report.violations)} violation(s) found")
Why pyspark-contracts
A contract is a Python class that lives next to the pipeline code, gets enforced on the DataFrames going into and out of your functions, and reports failures as structured JSON in the logs you already have. The library has no dependencies besides PySpark itself.
It does less than the data quality frameworks below, on purpose. Pick by what you need:
| Tool | Pick it when |
|---|---|
| pyspark-contracts | You want schema and row-level rules as code, checked at function boundaries in PySpark jobs, with nothing extra to install or run. |
| Pandera | You also validate pandas or polars DataFrames, or need statistical and hypothesis checks. |
| Great Expectations | You want a data quality platform: expectation suites managed as configuration, Data Docs reports, and checkpoints across many datasets. |
| PyDeequ | You want metrics tracked over time, anomaly detection, or suggested constraints, and can put the Deequ JAR matching your Spark version on the classpath. |
| AWS Glue Data Quality | You run on AWS Glue and want managed rulesets with CloudWatch metrics and console integration. It complements contracts rather than replacing them; you can use both. |
What the library deliberately won't do is listed under Non-goals in the roadmap.
Validation modes
| Mode | On violation | Return |
|---|---|---|
"hard" (default) |
Logs ERROR (JSON), raises ContractViolationError |
— |
"soft" |
Logs WARNING (JSON), continues |
ViolationReport |
Violations are errors by default. A rule marked as a warning (see
Severity and tolerance) never raises: if every violation is a
warning, "hard" mode logs WARNING and returns the report too.
Lazy vs fail-fast
By default, "hard" mode stops at the first error found (fewer Spark actions, faster
feedback), while "soft" mode collects every violation so you get the full picture in one
run. Warnings found before that first error are kept — stopping at a warning could hide an
error that should abort the job. Override either default with lazy:
# Hard mode, but collect every violation before raising
OdometerContract().validate(df, lazy=True)
# Soft mode, but stop at the first error
report = OdometerContract().validate(df, mode="soft", lazy=False)
Severity and tolerance
Every violation has a severity: "error" (the default) or "warn". Warnings are reported
and logged like errors, but never make "hard" mode raise — useful for a signal you want to
watch without aborting the job, or a rule that tolerates a little noise:
from pyspark.sql import DataFrame
from pyspark.sql import functions as F
from pyspark.sql.types import DateType, StringType
from pyspark_contracts import Contract, Field, check
class OdometerContract(Contract):
vin = Field(StringType(), nullable=False, regex="[A-Z0-9]{17}")
# Up to 0.1% null readings is a warning; more than that is an error
readingDate = Field(DateType(), nullable=False, max_failure_pct=0.1)
# Never more than a warning
note = Field(StringType(), max_length=200, severity="warn")
@check("delta_km should be under a plausible daily max", severity="warn")
def plausible_delta(self, df: DataFrame):
return F.col("odometerEnd") - F.col("odometerStart") > 2000
severityon aFieldapplies to all of its data constraints; on@check, to that check.max_failure_pctis a share of rows (0–100, likerow_pct): a constraint failing on at most that share is a warning instead of an error.@check(..., max_failure_pct=0.5)works the same way for a check. It's compared against the exact share, sorow_pct's rounding can't flip it.- Structural violations (
missing_column,type_mismatch,unexpected_column) androw_count_out_of_rangeare always errors.
report = OdometerContract().validate(df) # raises only if report.errors would be non-empty
for v in report.warnings:
print(v.kind, v.column or v.check, v.row_pct)
if report: is still true when there are only warnings; use report.errors /
report.warnings to tell them apart.
Cross-column checks
Field constraints are column-local. For rules spanning more than one column, use
condition (simple two-column comparisons) or @check (arbitrary logic):
from pyspark_contracts import Contract, Field, check
from pyspark.sql import DataFrame, Window
from pyspark.sql import functions as F
from pyspark.sql.types import DoubleType, StringType, TimestampType
class FinalDfContract(Contract):
end_dt = Field(TimestampType(), nullable=False)
start_dt = Field(TimestampType(), nullable=False,
condition=lambda f: F.col(f) < F.col("end_dt"),
condition_description="start_dt must precede end_dt")
vin = Field(StringType(), nullable=False)
delta_km = Field(DoubleType(), nullable=False)
@check("delta_km must be non-negative (no regression)")
def no_regression(self, df: DataFrame):
return F.col("delta_km") < 0
@check("delta_km must not exceed daily threshold")
def no_abnormal_jump(self, df: DataFrame, threshold: float = 1000.0):
return F.col("delta_km") > threshold
@check("at most one reading per vin per day")
def one_reading_per_day(self, df: DataFrame):
same_day = Window.partitionBy("vin", F.to_date("end_dt"))
return F.count(F.lit(1)).over(same_day) > 1
@check("every vin must be in the fleet table")
def known_vehicle(self, df: DataFrame, fleet: DataFrame) -> DataFrame:
return df.join(fleet, "vin", "left_anti")
A @check method describes the failing rows, in one of two ways:
- A condition (a
Column), likeF.col("delta_km") < 0— what you'd pass todf.filter(...). It's evaluated in the same single scan as the field constraints, so a passing check costs no extra Spark action, andsplit()can reject rows with it. Window functions are fine (one_reading_per_day). Use this whenever the rule can be written as a condition on each row. - A DataFrame of the failing rows, for rules that need another DataFrame or an aggregation,
like
known_vehicle. It costs one Spark action, andsplit()can't attribute it to rows.
failure_count and row_pct count the rows a check flags. For a DataFrame check that's
whatever it returns, so return input rows, not aggregates: a check returning one row per
duplicated group reports the number of groups, while row_pct is still divided by the
DataFrame's row count. When the rule is about groups, a window condition like
one_reading_per_day flags every row of each group instead.
Mind the polarity: a @check condition selects the rows that fail, while
Field(condition=...) describes the rows that pass. A row where the condition is null
doesn't fail either way.
Extra parameters (threshold, fleet) are supplied via validate() and routed to the checks
that declare them; one that no check accepts raises TypeError:
report = FinalDfContract().validate(df, mode="soft", threshold=2000.0, fleet=fleet_df)
Both condition and @check are skipped entirely when the DataFrame has a missing column
or type mismatch, since either can reference arbitrary columns.
Validating pipeline functions
@check_input and @check_output move contract validation from the function body onto its
signature, so a refactor can't accidentally drop it:
from pyspark_contracts import check_input, check_output
@check_input(AccumulatedDataContract, param="accumulated_df")
@check_output(FinalDfContract)
def build_final_df(accumulated_df: DataFrame, contracts_df: DataFrame) -> DataFrame:
return accumulated_df.join(contracts_df, ...)
check_input validates the named parameter before the function runs — a bad step never
executes. check_output validates the return value after the function runs, before it's
returned to the caller. Both accept mode and any extra kwargs, forwarded to validate()
exactly as if you'd called it directly:
@check_output(FinalDfContract, mode="soft", threshold=2000.0)
def build_final_df(df: DataFrame) -> DataFrame:
...
A function needing more than one input validated stacks @check_input:
@check_input(AccumulatedDataContract, param="accumulated_df")
@check_input(ContractsContract, param="contracts_df")
def build_final_df(accumulated_df, contracts_df): ...
Validation depth
from pyspark_contracts import ValidationDepth
# Column names and types only — reads df.schema, triggers zero Spark actions
OdometerContract().validate(df, depth=ValidationDepth.SCHEMA_ONLY)
# Skip structural checks, run only nullable/range/length/regex/condition/@check
OdometerContract().validate(df, depth=ValidationDepth.DATA_ONLY)
# Default: both
OdometerContract().validate(df, depth=ValidationDepth.SCHEMA_AND_DATA)
SCHEMA_AND_DATA is the default and runs the full pipeline described everywhere else in this
README — every schema and quality check, exactly as if depth were never passed.
SCHEMA_ONLY is particularly useful in unit tests where the DataFrame is built from a known
factory: the schema is guaranteed by construction, so only the data constraints are worth
checking — the reverse case, DATA_ONLY, skips column/type checks and assumes the schema is
already right, without adding a safety net if it isn't.
Dataset-level checks
min_rows / max_rows are declared as plain class attributes, not Field options — they
assert something about the DataFrame as a whole rather than a single column:
class MyContract(Contract):
min_rows = 100
max_rows = 1_000_000
vin = Field(StringType())
Checked right after the row count is known, so they apply under DATA_ONLY and
SCHEMA_AND_DATA depth (not SCHEMA_ONLY, which never computes a row count). Unlike
@check/condition, min_rows/max_rows are plain data, so they round-trip through
to_dict()/ContractSchema with no "can't reconstruct" warning.
Key columns
sample_values says what was wrong; a key says which record. Declare the columns that
identify a row and every row-level violation lists them next to the bad values:
from pyspark.sql.types import DateType, FloatType, StringType
from pyspark_contracts import Contract, Field
class OdometerContract(Contract):
key = ["vin", "readingDate"]
vin = Field(StringType(), nullable=False)
readingDate = Field(DateType(), nullable=False)
odometerEnd = Field(FloatType(), min_value=0)
{
"kind": "value_out_of_range",
"column": "odometerEnd",
"sample_values": [-1.0, -5.5],
"sample_keys": [
{"vin": "1HGCM82633A004352", "readingDate": "2026-01-03"},
{"vin": "JH4KA8260MC000000", "readingDate": "2026-01-04"}
]
}
sample_keys lines up with sample_values, entry by entry. Key columns must be declared fields.
They're not added for unique/unique_together (the sample already names the group), @check
(samples are whole rows), or structural violations. Keys are identifiers, so like sample values
they only appear in the structured fields — never in the log message or summary().
Uniqueness across columns
Field(unique=True) checks one column. For a composite key, such as one row per customer and
reference date, declare unique_together:
class OrderContract(Contract):
unique_together = [("customer_nr", "ref_date")]
customer_nr = Field(StringType(), nullable=False)
ref_date = Field(DateType(), nullable=False)
Like unique, a combination containing a null is never a duplicate, and failure_count counts
every row in a duplicate group. The violation is a duplicate_value with column unset,
constraint="unique_together=(customer_nr, ref_date)", and sample_values as one
{"customer_nr": ..., "ref_date": ...} per duplicated combination. It's always an error, runs
after the field constraints, and costs one extra Spark action per group (a groupBy, like
unique). Every group needs at least two declared columns.
Splitting valid and rejected rows
validate() tells you a DataFrame has bad rows. split() takes them out, so a job can keep
the bad rows for review and carry on with the rest:
from pyspark.sql.types import DateType, StringType
from pyspark_contracts import Contract, Field
class OrderContract(Contract):
unique_together = [("customer_nr", "ref_date")]
customer_nr = Field(StringType(), nullable=False, blank_is_null=True)
ref_date = Field(DateType(), nullable=False)
status = Field(StringType(), allowed_values=["open", "closed"])
valid, rejected = OrderContract().split(df)
rejected.write.mode("append").saveAsTable("quarantine.orders")
process(valid)
valid has the original columns. rejected has them plus _violations, an array of every rule
the row broke, in declaration order:
customer_nr ref_date status _violations
C1 2026-01-01 open [{duplicate_value, null, null, unique_together=(customer_nr, ref_date)}]
C1 2026-01-01 closed [{duplicate_value, null, null, unique_together=(customer_nr, ref_date)}]
2026-01-02 paused [{null_violation, customer_nr, null, nullable, blank counts as null},
{value_not_allowed, status, null, allowed_values=['open', 'closed']}]
Each entry is a struct<kind, column, check, constraint>: column is null for
unique_together and checks, and check holds a check's name (null otherwise). Use
errors_column="dq_errors" to name the column something else.
- Same rules as
validate(). It uses the same predicates, so a rule that's null for a row (likemin_valueon a null) doesn't reject it, and the per-rule counts matchvalidate()'s. - Only errors reject rows. A rule with
severity="warn"never takes a row out ofvalid.max_failure_pctis ignored — it's a judgment about the whole DataFrame, which would need a count; usevalidate()for tolerances. - Checks that return a condition count; checks that return a DataFrame don't. A condition is
per row, so an error-level one rejects rows like any field rule. A DataFrame of failing rows
can't be attributed back to the input, so those checks aren't evaluated and
split()emits aUserWarningnaming them. Pass the checks' parameters tosplit()as you would tovalidate().min_rows/max_rowsare ignored. - Structural problems raise. Missing, mistyped, or (with
strict) unexpected columns make row rules meaningless, sosplit()raisesContractViolationError. - Lazy.
split()runs no Spark action and logs nothing.validandrejectedare two plans overdf, sodf.cache()first if reading it is expensive. Eachunique/unique_togetherrule adds a shuffle.
Call validate(df, mode="soft") as well when you want the report and the log line.
Strict contracts
By default a DataFrame may carry columns the contract doesn't declare. Set strict = True to
report each of them as an unexpected_column violation — useful for an output contract right
before writing to a table, where a leftover debug or join column shouldn't slip through:
class FinalTableContract(Contract):
strict = True
vin = Field(StringType(), nullable=False)
odometer = Field(FloatType())
It's a structural check like missing_column: it reads only df.schema, so it runs under
SCHEMA_ONLY and SCHEMA_AND_DATA (not DATA_ONLY) with no Spark action, and it round-trips
through to_dict()/ContractSchema. Unexpected columns don't stop condition or @check
from running, since every column they could reference is still there.
Disabling validation
PYSPARK_CONTRACTS_ENABLED=false # skips all validation, no code changes needed
Useful when performance is critical and the schema is already trusted — e.g. the read right after a validated write.
Bringing your own logger
import logging
logger = logging.getLogger("my-etl-job")
OdometerContract().validate(df, logger=logger)
If no logger is passed, the library emits JSON to stdout.
The details travel as extra fields on the log record (contract, violations, ...), which a
formatter that prints only the message drops. So the message itself also names what failed —
counts, then each violation's kind, column or check, constraint, and failing-row count:
ERROR:my-etl-job:contract violation — job aborted: 2 violation(s) — null_violation vin (nullable): 3 rows; value_out_of_range odometerEnd (min_value=0): 42 rows
Sample values are never in the message, only in the structured fields. It lists the first 10
violations, then … and N more.
Field options
| Option | Type | Description |
|---|---|---|
nullable |
bool |
Default True. Set False to fail on null values. |
min_value |
numeric / date | Minimum allowed value. |
max_value |
numeric / date | Maximum allowed value. |
min_length |
int |
Minimum string length. |
max_length |
int |
Maximum string length. |
regex |
str |
Regex pattern the entire value must match — anchored for you, so "[0-9]+" rejects "abc123". |
allowed_values |
list |
Allowlist of valid values. |
unique |
bool |
Default False. Set True to fail when the column has duplicate (non-null) values. |
severity |
str |
"error" (default) or "warn", for every data constraint on the field. |
max_failure_pct |
float |
Percentage of rows (0–100) a constraint may fail on and still be only a warning. |
column |
str |
The real DataFrame column, when it isn't a valid Python name (e.g. "a.b"). |
blank_is_null |
bool |
With nullable=False on a string, also fail empty and whitespace-only values. |
Columns with dots in their name
Names like accumulatedData.duration (what Glue's relationalize produces) can't be class
attributes, so give the attribute the real column name with column=:
from pyspark.sql.types import LongType
from pyspark_contracts import Contract, Field
class TelemetryContract(Contract):
duration = Field(LongType(), nullable=False, min_value=0, column="accumulatedData.duration")
Reports, to_dict() and describe() use the real name (accumulatedData.duration), and the
library quotes every column it references, so the dot isn't read as a nested field. A
condition lambda receives the name as declared, so quote it in F.col if it has dots:
F.col(f"`{f}`").
Blank strings
nullable=False accepts "" and " ". For text files where an empty field means "missing",
add blank_is_null=True and the nullable check fails for empty and whitespace-only strings
too (tabs, newlines, and non-breaking spaces included):
from pyspark.sql.types import StringType
from pyspark_contracts import Contract, Field
class CustomerContract(Contract):
name = Field(StringType(), nullable=False, blank_is_null=True)
It only changes that check — a blank string still counts for min_length, regex, and the
rest — and it needs nullable=False on a string column.
Documenting a contract
description and metadata on Field are pure documentation — they never affect validation:
class AssetHdrTelemetryReadingContract(Contract):
asset_hdr_id = Field(LongType(), nullable=False,
description="AF internal vehicle identifier")
meter_reading_value = Field(DecimalType(26, 12), nullable=False, min_value=0,
description="Odometer reading in km",
metadata={"unit": "km", "source": "asset_hdr_telemetry_reading"})
Export the whole contract as data — types, constraints, descriptions, and the name/description
of every @check (never the executable code, which can't be serialized):
schema_dict = AssetHdrTelemetryReadingContract.to_dict()
json_str = AssetHdrTelemetryReadingContract.to_json()
Or print a quick human-readable summary:
print(AssetHdrTelemetryReadingContract.describe())
Sharing a schema without the Python class
Reload an exported schema and validate with it, without importing the original Contract
subclass:
from pyspark_contracts import ContractSchema
schema_dict = AssetHdrTelemetryReadingContract.to_dict()
ContractSchema.from_dict(schema_dict).validate(df)
# Or straight from JSON
ContractSchema.from_json(json_str).validate(df)
ContractSchema reconstructs everything to_dict() captured as data — types, nullability,
and every quality constraint. It cannot reconstruct @check methods or condition lambdas
(arbitrary Python code was never serialized) — from_dict()/from_json() emit a warning
naming any such rules the original contract had, so you know they won't be enforced.
Reusing the contract as a Spark schema
to_struct_type() returns the StructType the contract declares, so the same declaration can
drive the read:
df = spark.read.schema(OdometerContract.to_struct_type()).parquet(path)
OdometerContract().validate(df)
Each field's nullable carries over, and its description becomes the column's comment
metadata (the column comment when the DataFrame is saved as a table). Spark relaxes
nullable=False to True when reading files, so validate() is still what enforces it.
empty_df(spark) gives you an empty DataFrame with that schema, for tests:
df = OdometerContract.empty_df(spark)
Both also work on a ContractSchema reloaded with from_dict()/from_json().
Log output
Both modes emit the same structured JSON before acting (the message ends with a summary of
the violations, so it's useful on its own too):
{
"level": "ERROR",
"message": "contract violation — job aborted: 2 violation(s) — missing_column odometerStart (expected float); value_out_of_range odometerEnd (min_value=0): 42 rows",
"contract": "OdometerContract",
"mode": "hard",
"depth": "schema_and_data",
"violations": [
{"kind": "missing_column", "severity": "error", "column": "odometerStart", "expected_type": "float"},
{
"kind": "value_out_of_range",
"severity": "error",
"column": "odometerEnd",
"constraint": "min_value=0",
"row_pct": 2.3,
"failure_count": 42,
"sample_values": [-1.0, -5.5, -12.0]
}
],
"row_count": 1842
}
CloudWatch Logs Insights
-- All contract violations in the last 7 days
filter message like "contract violation — job aborted"
| stats count(*) as failures by contract
-- Violations by column across all runs
filter ispresent(violations)
| flatten violations
| stats count(*) by violations.kind, violations.column
-- Errors only, ignoring warnings
filter ispresent(violations)
| flatten violations
| filter violations.severity = "error"
| stats count(*) by contract, violations.kind
-- Failing @check methods across all runs
filter ispresent(violations)
| flatten violations
| filter violations.kind = "check_failed"
| stats count(*) by contract, violations.check
Violation kinds
Each violation's kind is a ViolationKind member. It's a str enum, so comparing it to
the plain string still works:
from pyspark_contracts import ViolationKind
nulls = [v for v in report.violations if v.kind == ViolationKind.NULL_VIOLATION]
| Kind | Trigger |
|---|---|
missing_column |
Column declared in contract is absent from the DataFrame |
type_mismatch |
Column exists but type differs from declared type (reported as Spark type strings, e.g. decimal(26,12)). Metadata on nested struct fields is ignored. |
null_violation |
nullable=False column contains null values |
value_out_of_range |
Value below min_value or above max_value |
length_out_of_range |
String length below min_length or above max_length |
regex_mismatch |
Value does not match regex pattern |
value_not_allowed |
Value not in allowed_values list |
condition_failed |
Field(condition=...) expression evaluated to false |
check_failed |
@check-decorated method returned non-empty failing rows (named in check, not column) |
duplicate_value |
Field(unique=True) column, or a unique_together group, has repeated (non-null) values |
row_count_out_of_range |
DataFrame row count below min_rows or above max_rows |
unexpected_column |
strict = True contract, and the DataFrame has a column it doesn't declare |
Performance note
The row count, every column constraint (nullable, ranges, lengths, regex,
allowed_values, condition), and every @check that returns a condition are checked
together in a single Spark action, however many the contract declares. On top of that:
| Adds one Spark action | Why |
|---|---|
Each unique field or unique_together group |
Needs a groupBy, which can't share the single pass |
Each @check that returns a DataFrame |
Counts the rows it returns |
| Any violations found | One query fetches the sample_values of the failing rules |
The sample query covers every failing rule with up to 10,000 failing rows; a rule failing more often gets its own lookup, which stops reading as soon as it has five rows.
So a contract without unique/unique_together or DataFrame checks reads a passing DataFrame
once. If yours has several of them, or you expect violations, and the DataFrame is expensive to
recompute, cache it before validating:
df = df.cache()
OdometerContract().validate(df)
See BENCHMARKS.md for measured overhead.
Compatibility and versioning
Supported: Python 3.10–3.14 and PySpark 3.3–4.x, in classic mode and Spark Connect (PySpark
4.x). The combinations CI runs are listed in
.github/workflows/test.yml.
Support for a Python or PySpark version is dropped only in a minor release, noted in the
CHANGELOG, once it's end-of-life upstream and no current AWS Glue or Databricks runtime uses it.
Public API. From 1.0.0 the library follows semantic versioning: nothing below changes in a breaking way without a major version bump.
- Everything exported from
pyspark_contracts(its__all__), with the parameters, attributes, and behavior documented for each. - The values of
ViolationKindandSeverity. - The structured fields of the log record —
contract,mode,depth,violations(each withViolation's fields),row_count— and the dict returned byViolationReport.to_dict(). - The keys of
Contract.to_dict(), and the shape ofsplit()'s errors column.
Not public API, free to change in any release:
- Anything under a leading underscore, including the
pyspark_contracts._*modules. - The wording of log messages,
ViolationReport.summary(), and exception messages. Match the stable prefix withlike(e.g.contract violation — job aborted), or use the structured fields. - Which rows end up in
sample_valuesand in what order (always up to five), and how many Spark actions a validation runs.
Until 1.0.0, minor releases may still break things; each break is called out in the CHANGELOG.
Metadata
Release files for pyspark-contracts 0.13.1
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 |
|---|---|---|---|---|
| pyspark_contracts-0.13.1.tar.gz | 96.5 kB | With provenance | Details for pyspark_contracts-0.13.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyspark_contracts-0.13.1-py3-none-any.whl | Python 3 | none | any | Details for pyspark_contracts-0.13.1-py3-none-any.whl |
Total release size: 149.7 kB
Release files / pyspark_contracts-0.13.1.tar.gz
| Download URL | pyspark_contracts-0.13.1.tar.gz |
|---|---|
| Size | 96.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2752c1fce36689d797aa14f41c243afbfd4d878029f7ba7bcf2e59387b7ae3cf
|
|
BLAKE2b-256 checksum How to use checksums |
3bbdb74c13950f93b4118be68aa144a3c46930a28300e18d55e8d5abbd3f5c7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logRelease files / pyspark_contracts-0.13.1-py3-none-any.whl
| Download URL | pyspark_contracts-0.13.1-py3-none-any.whl |
|---|---|
| Size | 53.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97104ed0656775af37680b1e80c6aea25dce69dffdbf66eb1169d9ddab38e91a
|
|
BLAKE2b-256 checksum How to use checksums |
76ace6e6655281d284d66017f66c7d7cc4acb8569ece3ad1b82927a0978e784c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logSecurity for pyspark-contracts 0.13.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyspark_contracts-0.13.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logA 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.