Pydantic-class API on top of panproto: GATs, lenses, and VCS.
Project description
didactic
A typed-data library for Python on top of panproto.
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.43+.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file didactic-0.3.0.tar.gz.
File metadata
- Download URL: didactic-0.3.0.tar.gz
- Upload date:
- Size: 92.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ede31b378307821adf5b2d72c65c6b48bde4979978639adaeb2d819bda6d66f9
|
|
| MD5 |
b439998680f771cdc6b5db990baae5f7
|
|
| BLAKE2b-256 |
dd5a07727efac3acd551f0cef9a75874f0cba5385d4bf627b57537d4484b20d3
|
Provenance
The following attestation bundles were made for didactic-0.3.0.tar.gz:
Publisher:
release.yml on panproto/didactic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
didactic-0.3.0.tar.gz -
Subject digest:
ede31b378307821adf5b2d72c65c6b48bde4979978639adaeb2d819bda6d66f9 - Sigstore transparency entry: 1422685108
- Sigstore integration time:
-
Permalink:
panproto/didactic@e641e36957326c83c38afad20333ad81941a89a4 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/panproto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e641e36957326c83c38afad20333ad81941a89a4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file didactic-0.3.0-py3-none-any.whl.
File metadata
- Download URL: didactic-0.3.0-py3-none-any.whl
- Upload date:
- Size: 118.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9424d6f93facf7844fea3661b30e4e9fbaa34822da4dd726d7f8d772d5320e07
|
|
| MD5 |
a91eed536d38fd8e78b74013d1c23cae
|
|
| BLAKE2b-256 |
0f96d51ee5b8baeff50660f809bb3fd8945790e7795503c65a118097a1d74885
|
Provenance
The following attestation bundles were made for didactic-0.3.0-py3-none-any.whl:
Publisher:
release.yml on panproto/didactic
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
didactic-0.3.0-py3-none-any.whl -
Subject digest:
9424d6f93facf7844fea3661b30e4e9fbaa34822da4dd726d7f8d772d5320e07 - Sigstore transparency entry: 1422685223
- Sigstore integration time:
-
Permalink:
panproto/didactic@e641e36957326c83c38afad20333ad81941a89a4 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/panproto
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e641e36957326c83c38afad20333ad81941a89a4 -
Trigger Event:
push
-
Statement type: