Skip to main content

Pydantic-class API on top of panproto: GATs, lenses, and VCS.

Project description

didactic

A typed-data library for Python on top of panproto.

PyPI Python License CI Docs

Authoring is class-based and looks like Pydantic. Underneath, every Model corresponds to a panproto Theory, every value to a panproto Schema, and every transformation between Models to a panproto Lens.

This is the core distribution. Three sibling distributions (didactic-pydantic, didactic-settings, didactic-fastapi) contribute submodules under didactic.<name>.

Install

didactic targets Python 3.14 and panproto 0.52+.

pip install didactic

Quickstart

import didactic.api as dx


class User(dx.Model):
    """A user record."""

    id: str
    email: str
    display_name: str = ""


u = User(id="u1", email="a@b.c")
u2 = u.with_(display_name="Alice")

Documentation

The full documentation site is at panproto.dev/didactic and includes a tutorial, task-oriented guides, conceptual background, and per-symbol API reference. Source is in the workspace docs/ directory.

License

Released under the MIT License.

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

didactic-0.7.5.tar.gz (120.0 kB view details)

Uploaded Source

Built Distribution

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

didactic-0.7.5-py3-none-any.whl (147.6 kB view details)

Uploaded Python 3

File details

Details for the file didactic-0.7.5.tar.gz.

File metadata

  • Download URL: didactic-0.7.5.tar.gz
  • Upload date:
  • Size: 120.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for didactic-0.7.5.tar.gz
Algorithm Hash digest
SHA256 358fc64dbb3a07b721c26dfc751da226e41232d2d37a1e68811f3ef439a2fb0e
MD5 2e263397cec3f676ec8d648eaf360c00
BLAKE2b-256 ea9bc2ab796bba929b84b5a4314c1abd0ff5acf4f1c5b55afa87bfbb7c23f16d

See more details on using hashes here.

Provenance

The following attestation bundles were made for didactic-0.7.5.tar.gz:

Publisher: release.yml on panproto/didactic

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

File details

Details for the file didactic-0.7.5-py3-none-any.whl.

File metadata

  • Download URL: didactic-0.7.5-py3-none-any.whl
  • Upload date:
  • Size: 147.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for didactic-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 10b3ee219775f6cd02f66f57f83974991d8920f5b5460a3c05b8a2a42f8edf33
MD5 a0a8eba3a533b9f28678feea754f5f58
BLAKE2b-256 bf7a40ed35345c4318a72c9906cfa0aa892d419c2b070b326f28eb30a2fd80e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for didactic-0.7.5-py3-none-any.whl:

Publisher: release.yml on panproto/didactic

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