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.0.tar.gz (6.5 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.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for valbridge_pydantic_extractor-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8bb2911b5352d53985d3b4a366c10733ee1c6c76194e6ea48cab13dfe05ddca3
MD5 dba274fc1f1d4e36b11bce32337fbb5c
BLAKE2b-256 f2924e683908e5214e35f19979d9c5f16600590fafe3e28cf54ded537c456b28

See more details on using hashes here.

Provenance

The following attestation bundles were made for valbridge_pydantic_extractor-0.4.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for valbridge_pydantic_extractor-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e594157ef434e5f0c6e2ce668e07fd3af9adfd5c991e2fe3b6dde0966e213cc3
MD5 3dee58f328a0eaf302355e84b2a3ae92
BLAKE2b-256 8a106d5a3c1d8dc4b66ab78c871f2d5b63592488cafbc063e25793ed1121aaa3

See more details on using hashes here.

Provenance

The following attestation bundles were made for valbridge_pydantic_extractor-0.4.0-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