Skip to main content

Workspace-local Pydantic extraction utilities for valbridge

Project description

valbridge-pydantic-extractor

Workspace-local extraction utilities for turning Pydantic models into JSON Schema enriched for valbridge.

Installation

pip install valbridge-pydantic-extractor

CLI usage

valbridge-pydantic-extractor app.models:User --python-path .

The extractor prints JSON with:

  • schema: the extracted schema document
  • diagnostics: import or extraction diagnostics when the target cannot be resolved cleanly

Options

  • --python-path <path>: prepend an import path before loading the target module
  • --module-root <path>: add one or more module roots for project-local imports
  • --stub-module <module>: install placeholder modules for optional imports during extraction
  • --env KEY=VALUE: inject environment variables before importing the model

Notes

  • the target must use module:Class format
  • the target class must inherit from pydantic.BaseModel
  • extracted output preserves x-valbridge annotations needed by downstream code generation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

valbridge_pydantic_extractor-0.4.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

valbridge_pydantic_extractor-0.4.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file valbridge_pydantic_extractor-0.4.1.tar.gz.

File metadata

File hashes

Hashes for valbridge_pydantic_extractor-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1c6ae322d32573310fdaa77f874280f59aa3c4653d37b95cf66d861cff4f5048
MD5 42c5f2767c43702f113fca7b2733f964
BLAKE2b-256 a0835473eb4ffdd07ebd2b3e183178a81bddf4e5aa8cd2ccf6fa532a1f99500d

See more details on using hashes here.

Provenance

The following attestation bundles were made for valbridge_pydantic_extractor-0.4.1.tar.gz:

Publisher: release-please.yml on vectorfy-co/valbridge

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

File details

Details for the file valbridge_pydantic_extractor-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for valbridge_pydantic_extractor-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d558013ae4a33e7c6a19be56308ac19df0fe016e5e6400d7b28f520b81c3d635
MD5 9c84fad7fa7484e905b25b43a9c36497
BLAKE2b-256 9e0e18fd2f58f2035e72aa04398df45c2549d7a9f99c7add06191ff68904edc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for valbridge_pydantic_extractor-0.4.1-py3-none-any.whl:

Publisher: release-please.yml on vectorfy-co/valbridge

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page