Skip to main content

betula-schema (Python)

Pydantic v2 models and strict parsers for the betula JSON Schemas: sequences, alignments, phylogenetic trees, gene annotations, distance matrices, and BLAST results.

from betula_schema import Tree, parse_json

tree = parse_json(Tree, '{"name": "A", "length": 0.1, "children": []}')

Every schema title is a model in betula_schema. Use parse / parse_json rather than Model.model_validate*: they validate in Pydantic's strict mode, which is what makes them reject exactly what the schema rejects.

See Getting started for the full API tour, and the schema pages for each type. The models are generated from the schemas; the version matches the schema $id versions.

Metadata

Release files for betula-schema 0.6.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 betula-schema 0.6.0
File Size Uploaded
betula_schema-0.6.0.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for betula-schema 0.6.0
File Interpreter ABI Platform
betula_schema-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / betula_schema-0.6.0.tar.gz

Download URL betula_schema-0.6.0.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c53ae4c7f2cb455b6a43fb1b743d62592815f3bc983cb12ad7efcdbbe4210957
BLAKE2b-256 checksum
How to use checksums
41025f7e181c5a45acb4551e391f01e893ce1d6b18cf22d070e97fa063742ea7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 3, 2026.

Transparency log

Release files / betula_schema-0.6.0-py3-none-any.whl

Download URL betula_schema-0.6.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4958a3cd859f0a39241f926d585f35537bdc5d578b51450f3aa978ce056042d
BLAKE2b-256 checksum
How to use checksums
e6410c291b78e7e8e7275e340c6f580e92adfd5e1edb28933580435aa4252574
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.0 This release

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