Skip to main content

valbridge

Runtime client for valbridge-generated Python validators with type-safe schema lookup.

PyPI License


Installation

pip install valbridge
# or
uv add valbridge

Quick start

from valbridge import create_valbridge
from _valbridge import schemas

valbridge = create_valbridge(schemas)

# Full namespace:id lookup
user_validator = valbridge("user:Profile")

# Validate data (Pydantic under the hood)
user_validator.validate_python({"name": "Alice", "email": "alice@example.com"})

Default namespace

valbridge = create_valbridge(schemas, default_namespace="user")

# Shorthand for "user:Profile"
profile = valbridge("Profile")

# Full key for other namespaces
config = valbridge("settings:AppConfig")

Key behaviors

  • Runtime lookup -- only entries with a runtime validator appear in the schemas object
  • Type safety -- invalid keys raise clear errors pointing to valbridge generate
  • Pydantic integration -- generated validators are native Pydantic BaseModel classes

Related packages

Package Purpose
valbridge-core Core IR and JSON Schema parser
valbridge-pydantic Pydantic adapter for code generation
valbridge-cli CLI to generate validators
@vectorfyco/valbridge TypeScript equivalent

Learn more

Metadata

Release files for valbridge 1.2.0

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

Source distribution (sdist)

Source distribution for valbridge 1.2.0
File Size Uploaded
valbridge-1.2.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for valbridge 1.2.0
File Interpreter ABI Platform
valbridge-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / valbridge-1.2.0.tar.gz

Download URL valbridge-1.2.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1bc808cc18db9c4867b0fab758e8b54d5aac31beb3444985ffbe29e471a6ef66
BLAKE2b-256 checksum
How to use checksums
934acd82d694137c7f2cef23b74c994fb4dd77a83c40fab4a788b55bbde2d770
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 10, 2026.

Transparency log

Release files / valbridge-1.2.0-py3-none-any.whl

Download URL valbridge-1.2.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c2e7ffb0cdffb2942d52ead44be6903372505fb0f312077c75a08170a3e8efc
BLAKE2b-256 checksum
How to use checksums
e896020990b5d0d67e405bda7f8c607eb1d404a127d8b6528a8db92b205acda1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.1.1

2 release 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