Skip to main content

sonnet-core

Framework-agnostic core library for Petrarca Labs backend services.

sonnet-core is the foundation layer beneath sonnet-server. It holds pure data-layer and logic building blocks that carry no web/server framework dependency (no FastAPI, uvicorn, Alembic, Typer, or Jinja2). It may depend on data-modeling libraries (Pydantic, SQLAlchemy, SQLModel) and pure utilities (jsonschema, arrow, loguru).

Layering

sonnet-core    (this package -- pure data/logic)
   ^
sonnet-server  (web/server framework)
   ^
sonnet-auth / sonnet-graph / sonnet-storage

Contents

  • ids -- compact, time-sortable id generation (generate_id, to_base36).
  • models -- Pydantic/SQLModel model building and conversion (create_model, ModelBuilder, to_response_model, update_model_fields).
  • schema -- JSON Schema validation helpers (validate_instance, validate_schema, ValidationResult).
  • enums -- constraint-free enum columns (str_enum_column).
  • versioning -- version-string ordering (pick_latest).

Metadata

Release files for sonnet-core 0.2.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 sonnet-core 0.2.0
File Size Uploaded
sonnet_core-0.2.0.tar.gz 80.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sonnet-core 0.2.0
File Interpreter ABI Platform
sonnet_core-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 181.5 kB

Release files / sonnet_core-0.2.0.tar.gz

Download URL sonnet_core-0.2.0.tar.gz
Size 80.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f410071d09d6d4905e98e692c7f9d6af827fd9675c384975ef0200929c2a78ba
BLAKE2b-256 checksum
How to use checksums
0a1161d6988345a1d15b8b6594aa494c76be52db6dd67eaa7da6d3dea1345a81
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 Aug 12, 2026.

Transparency log

Release files / sonnet_core-0.2.0-py3-none-any.whl

Download URL sonnet_core-0.2.0-py3-none-any.whl
Size 101.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fba146ba49716e4a85d89ade420917bee909a9dbf44eed6d85a725ad67d74e51
BLAKE2b-256 checksum
How to use checksums
1900a4f244f99994771e2c89527097a0d42268bd2f689d85ec9c77a17446a10f
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 Aug 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

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