overture-schema-validation
Validate data against the union of all discovered Overture Maps models.
This package provides validate and validate_json, which check a Python object or JSON document against every Overture model registered on the overture.models entry point and return the matching validated model instance.
Installation
pip install overture-schema-validation
Usage
from overture.schema.validation import validate, validate_json
# A Python object -- the flat, tabular (Parquet-style) shape
feature = validate(feature_row)
# A JSON document -- GeoJSON
feature = validate_json(geojson_text)
The two entry points are not interchangeable. validate runs Pydantic's Python mode, which reads the flat column layout of the Parquet release -- the shape Overture publishes. validate_json runs JSON mode, which reads the GeoJSON representation the models support for compatibility with tools that expect features rather than rows. Handing a GeoJSON dict to validate reports theme and version missing and type set to 'Feature'.
Both raise pydantic.ValidationError when the input matches no model. Which models participate is resolved at runtime by entry-point discovery, so installing additional Overture theme packages widens what these functions accept.
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 overture_schema_validation-2.0.0.tar.gz.
File metadata
- Download URL: overture_schema_validation-2.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d60549bb9f72dcbd0fae11b2a8433fe089288dcdf55524a2a1e0f38df4892a22
|
|
| MD5 |
7fb36c85650bd561cae095701f753e33
|
|
| BLAKE2b-256 |
683ff83496cc37fc4358e44074fb362849f93cc67a172ffacb871264fa3bfc00
|
Provenance
The following attestation bundles were made for overture_schema_validation-2.0.0.tar.gz:
Publisher:
release-publish.yaml on OvertureMaps/schema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
overture_schema_validation-2.0.0.tar.gz -
Subject digest:
d60549bb9f72dcbd0fae11b2a8433fe089288dcdf55524a2a1e0f38df4892a22 - Sigstore transparency entry: 2691698179
- Sigstore integration time:
-
Permalink:
OvertureMaps/schema@cb69ac3a3d31daa05f72a505af4f3234f191e77b -
Branch / Tag:
refs/tags/overture-schema-validation-v2.0.0 - Owner: https://github.com/OvertureMaps
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-publish.yaml@cb69ac3a3d31daa05f72a505af4f3234f191e77b -
Trigger Event:
release
-
Statement type:
File details
Details for the file overture_schema_validation-2.0.0-py3-none-any.whl.
File metadata
- Download URL: overture_schema_validation-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d08dbe9a38899600c63dc9c4d48305b152bbedc508d2541feb590c04d3351ab
|
|
| MD5 |
fbff5ac610f16fdbe61e65f7f66ea02e
|
|
| BLAKE2b-256 |
da23454fb1bc6e74f3002c848491a4832be2f08b53e37c5937ea957ff4b5e1e1
|
Provenance
The following attestation bundles were made for overture_schema_validation-2.0.0-py3-none-any.whl:
Publisher:
release-publish.yaml on OvertureMaps/schema
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
overture_schema_validation-2.0.0-py3-none-any.whl -
Subject digest:
0d08dbe9a38899600c63dc9c4d48305b152bbedc508d2541feb590c04d3351ab - Sigstore transparency entry: 2691698674
- Sigstore integration time:
-
Permalink:
OvertureMaps/schema@cb69ac3a3d31daa05f72a505af4f3234f191e77b -
Branch / Tag:
refs/tags/overture-schema-validation-v2.0.0 - Owner: https://github.com/OvertureMaps
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-publish.yaml@cb69ac3a3d31daa05f72a505af4f3234f191e77b -
Trigger Event:
release
-
Statement type: