Skip to main content

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

overture_schema_validation-2.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

overture_schema_validation-2.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file overture_schema_validation-2.0.0.tar.gz.

File metadata

File hashes

Hashes for overture_schema_validation-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d60549bb9f72dcbd0fae11b2a8433fe089288dcdf55524a2a1e0f38df4892a22
MD5 7fb36c85650bd561cae095701f753e33
BLAKE2b-256 683ff83496cc37fc4358e44074fb362849f93cc67a172ffacb871264fa3bfc00

See more details on using hashes here.

Provenance

The following attestation bundles were made for overture_schema_validation-2.0.0.tar.gz:

Publisher: release-publish.yaml on OvertureMaps/schema

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file overture_schema_validation-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for overture_schema_validation-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d08dbe9a38899600c63dc9c4d48305b152bbedc508d2541feb590c04d3351ab
MD5 fbff5ac610f16fdbe61e65f7f66ea02e
BLAKE2b-256 da23454fb1bc6e74f3002c848491a4832be2f08b53e37c5937ea957ff4b5e1e1

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

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