This release is a pre-release and may not be stable for production use.
tigrbl-core
tigrbl-core
Core Tigrbl framework specifications, decorators, schemas, hooks, operations, and primitives for schema-first APIs.
Overview · Installation · Quick Start · Usage · API · Contributing · Governance · License
Overview
Summary
tigrbl-core: Core Tigrbl framework specifications, decorators, schemas, hooks, operations, and primitives for schema-first APIs.
Why This Package
Use it when you need this foundational Tigrbl layer directly as a small, focused dependency.
When to Use
Choose tigrbl-core when the quick-answer table matches your use case. Choose tigrbl instead when you want the full public facade. Choose a lower-level package such as tigrbl-core, tigrbl-base, or tigrbl-runtime when you are building framework extensions or testing a specific internal boundary.
Features
- Public source surface: the checkout commands documented in Quick Start.
- Declared responsibility: Core Tigrbl framework specifications, decorators, schemas, hooks, operations, and primitives for schema-first APIs.
- Versioned package metadata and maintained checkout examples.
Non-Goals
tigrbl-core owns core Tigrbl framework specifications, decorators, schemas, hooks, operations, and primitives for schema-first APIs. Its imports do not by themselves configure credentials, deploy a service, or certify the behavior of its consumers. Dependencies and neighboring packages retain their own documented responsibilities.
Getting Started
Prerequisites
Python >=3.10,<3.15 is required. The manifest declares runtime dependencies including tigrbl-spec, tigrbl-typing, pydantic, pyyaml, tomli-w, tomli. Use the source-checkout workflow for this workspace or test harness.
Installation
uv
uv add tigrbl-core
pip
python -m pip install tigrbl-core
Poetry
poetry add tigrbl-core
Quick Start
Example
Source: docs/readme/quick_start.py.
import importlib
module = importlib.import_module("tigrbl_core._spec")
print(module.__name__)
Expected Result
The example demonstrates the documented tigrbl-core source boundary or workflow. Complete its required configuration first. README CI checks the maintained source’s syntax and declarations; it does not claim that external services or the application workflow were exercised.
Usage
Common Workflows
Source: docs/readme/usage.py.
import importlib
module = importlib.import_module("tigrbl_core._spec")
print(module.__name__)
Verify the installed package
python -m pip show tigrbl-core
python - <<'PY'
from importlib.metadata import version
print(version("tigrbl-core"))
PY
Import the package boundary
Inspect available modules
import importlib
import pkgutil
module = importlib.import_module("tigrbl_core._spec")
for info in pkgutil.iter_modules(getattr(module, "__path__", [])):
print(info.name)
Use with the facade when building applications
uv add tigrbl tigrbl-core
python - <<'PY'
import tigrbl
print(tigrbl.__name__)
PY
Configuration
Configure tigrbl-core through the APIs in package source; its manifest describes installation requirements, not an implicit service configuration. No additional package-global configuration contract is inferred from dependencies.
Error Handling
The inspected tigrbl-core source does not establish a package-wide exception hierarchy. Preserve errors from its declared dependencies and validate inputs using the specific public contract in package source.
Best Practices
Use the explicit tigrbl-core imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing the checkout commands documented in Quick Start; an import or successful installation alone does not establish its runtime guarantees.
Package Boundary
What It Owns
tigrbl-core owns the foundational framework package boundary. It should be installed when you need this package's focused responsibility without assuming every other Tigrbl workspace package is present.
Implementation orientation:
tigrbl_core: _spec/, canonical_json, config/, core/, op/, schema/
Package catalog:
tigrbl_core/_spec/: typed, serializable specifications for aliases, apps, bindings, columns, data types, docs, engines, fields, hooks, IO, middleware, operations, paths, requests, responses, routers, schemas, sessions, storage, tables, and table registries.tigrbl_core/config/: constants, defaults, resolver logic, and engine traversal helpers used when app, router, table, column, op, and request layers are merged.tigrbl_core/op/: canonical operation names, operation collection, and operation typing helpers.tigrbl_core/schema/: dynamic schema construction, schema cache helpers, extras handling, list-parameter support, schema JSON helpers, andget_schemaaccess.tigrbl_core/canonical_json.py: deterministic JSON output used by docs, registry-like payloads, tests, and conformance artifacts.
This file is a package-local distribution entry point. This README is the package-local distribution entry point for tigrbl-core. It answers install, usage, API, ownership, and certification-orientation questions for this package. Broader architectural decisions, release status, and cross-package proof chains remain in the repository-level docs and SSOT registry.
Public API and Import Surfaces
- Import roots:
tigrbl_core. - Public symbols: public surface is module-oriented; import the package boundary and inspect submodules as needed.
- Workspace dependencies:
tigrbl-typing. - External runtime dependencies:
pydantic>=2.10,<3,pyyaml,tomli-w,tomli>=2.0.1; python_version < '3.11'.
Entry Points
This package declares no command-line, GUI, or plugin entry points in its manifest.
Injected Dependencies
The direct installation dependencies of tigrbl-core are tigrbl-spec, tigrbl-typing, pydantic, pyyaml, tomli-w, tomli. These declarations do not imply automatic provider selection. Pass collaborators through the explicit constructors or call signatures in package source.
Protocol Consumers
Direct consumers in this checkout’s package manifests include tba-storage-core, tba-runtime-identity-storage, tba-server-identity, tba-workspace, tigrbl-base, tigrbl-atoms, tigrbl-kernel, tigrbl-runtime, tigrbl-ops-oltp, tigrbl-concrete, tigrbl, tigrbl-equivalence-contracts, tigrbl-transport-surface-matrix-demo, tigrbl-websocket-realtime-ops-demo, tigrbl-mcp. These edges describe declared dependencies, not protocol-conformance evidence.
Extensions
For tigrbl-core, use the source-declared public interfaces (the checkout commands documented in Quick Start) when composing or extending behavior. Its entry-point section below is authoritative for registered plugins; no additional extension loader is inferred from the package name.
Operations and Readiness
Operational Requirements
Operate tigrbl-core according to its actual entry points and collaborators. The dependency and Python requirements in the manifest are prerequisites; deployment topology, credentials, and readiness remain the responsibility of the consuming application unless explicitly documented above.
Health and Observability
This README does not establish a standalone health endpoint for tigrbl-core. Observe the concrete caller’s results, exceptions, and existing test reports. An application that embeds this package must define its own health and telemetry contract.
Security and Resource Limits
Apply the input, credential, and resource constraints implemented in package source. The tigrbl-core README gate is a documentation check, not a security review or a substitute for the implementation’s limits and caller authorization.
Compatibility
This source version of tigrbl-core declares Python >=3.10,<3.15. Consult its dependency constraints before upgrading. Source-version and registry-version badges have separate meanings; this migration makes no additional platform or interoperability certification claim.
Verification
Tests
Run python -m pytest docs/readme/test_examples.py from the tigrbl-core package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:
- tests/test_adapter_registry_contract.py
- tests/test_alias_spec.py
- tests/test_app_spec.py
- tests/test_binding_spec.py
- tests/test_canonical_appspec_transport_contract.py
The repository README gate also checks the required heading tree, metadata, managed fragments, and referenced files.
Certification Status
- Package status: governed package in the
tigrbl/tigrblworkspace. - Governance source: SSOT registry.
- Release evidence: publish workflow validates package builds, tests, GitHub release assets, and PyPI publication for managed packages.
- Local certification guard:
pkgs/97_tests/tigrbl_tests/tests/unit/test_package_badges_and_notices.pyverifies every package README keeps the Discord badge, Apache 2.0 badge, explicit Python-version badge,LICENSE, andNOTICE. - Scope note: this README documents the package boundary. Runtime feature support remains governed by
.ssot/entities and the conformance docs linked below.
Evidence
The README standards CI records mechanical documentation results for its tested commit. The package source and example sources support the package-boundary description; external runtime behavior requires its own test evidence.
FAQ
Why
Why select this package? tigrbl-core provides core Tigrbl framework specifications, decorators, schemas, hooks, operations, and primitives for schema-first APIs; use its own API boundary rather than assuming neighboring packages are bundled or configured automatically.
How
How do I start? Install or synchronize the environment under Getting Started, follow the maintained example for tigrbl-core, and consult package source for the exact types and signatures involved.
When
When should I validate an upgrade? Recheck tigrbl-core whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.
Documentation and Related Packages
More Documentation
- Workspace docs
- Package catalog
- Package layout
- Current target
- Current state
- Next steps
- Documentation pointers
- SSOT registry
- Release workflow
Related Packages
Project Links
- Community: Discord.
- Issues: GitHub Issues.
- Repository: pkgs/10_core/tigrbl_core.
Contributing
How to Contribute
Follow the contribution guide and include a focused example or regression for changes to tigrbl-core. Keep package behavior, its documented boundary, and its tests aligned.
Development Setup
Work from the pkgs/10_core/tigrbl_core checkout. Synchronize its declared development environment with uv, then run the relevant package tests and python -m pytest docs/readme/test_examples.py. The repository’s dedicated README job installs readme-standards==0.1.3 without resolving unrelated runtime packages.
Notes for Maintainers
What is tigrbl-core?
Core Tigrbl framework specifications, decorators, schemas, hooks, operations, and primitives for schema-first APIs.
When should I install tigrbl-core?
Install it for extension packages, package-local tests, or internals that need this boundary without the whole facade.
Who is tigrbl-core for?
Framework maintainers, extension authors, and advanced users composing Tigrbl from split packages.
Where does tigrbl-core fit?
tigrbl-core lives at pkgs/10_core/tigrbl_core and serves a focused layer in the split Tigrbl framework.
How does tigrbl-core work?
It owns a narrow layer in the split workspace and is consumed by higher-level packages through explicit dependencies.
Install
uv add tigrbl-core
pip install tigrbl-core
Surface Coverage
| Surface | Value |
|---|---|
| PyPI package | tigrbl-core |
| Repository path | pkgs/10_core/tigrbl_core |
| Python import root | tigrbl_core |
| Console scripts | none declared |
| Entry points | none declared |
| Optional extras | none declared |
| Legal files | LICENSE, NOTICE |
| Supported Python | 3.10, 3.11, 3.12, 3.13, 3.14 |
Specification Model
The core package is the contract layer. It defines the vocabulary consumed by base abstractions, concrete adapters, atoms, kernel planning, runtime routing, docs generation, and the public facade. Most application code should not construct these specs manually; application code should normally use facade decorators and shortcuts. Extension packages use the specs when they need deterministic, testable configuration objects.
| Spec family | What it describes |
|---|---|
AppSpec, RouterSpec, TableSpec |
Container-level framework configuration and inheritance points. |
ColumnSpec, FieldSpec, data type specs |
Field semantics, validation, storage, schema projection, and data-type lowering. |
OpSpec and op utilities |
Operation name, alias, arity, binding, handler, schema, hook, response, and runtime intent. |
HookSpec and hook types |
Hook targets, phases, predicates, ordering, and callable registration shape. |
SchemaSpec, RequestSpec, ResponseSpec, IoSpec |
Input/output envelope behavior, request extraction, response shaping, and Pydantic model generation. |
BindingSpec |
REST, JSON-RPC, stream, SSE, WebSocket, WSS, and WebTransport binding metadata. |
EngineSpec, SessionSpec, StorageSpec |
Engine/provider/session/storage configuration without importing concrete engine implementations. |
DocsSpec, PathSpec, MiddlewareSpec |
Documentation projection, route paths, and middleware configuration. |
Operation Semantics
tigrbl_core.op.canonical.DEFAULT_CANON_VERBS is the default CRUD set:
create, read, update, replace, delete, list, clear
Tables can change canonical wiring through mode/include/exclude attributes or a should_wire_canonical(op) helper. Core only decides whether an operation is part of the desired specification. Concrete packages and operation packs supply the actual handlers and routing behavior.
Use this package when you need to inspect or build operation specs before runtime compilation. Use tigrbl when you simply want a working app surface.
Binding and Transport Semantics
BindingSpec keeps four concerns distinct:
- protocol or binding kind, such as HTTP REST, HTTP JSON-RPC, HTTP stream, SSE, WebSocket, WSS, or WebTransport;
- exchange shape, such as request/response, server stream, bidirectional stream, client stream, server stream, session, or datagram;
- framing, such as JSON, JSON-RPC, SSE, WebSocket text, stream framing, or WebTransport lane-local framing;
- runtime lane metadata, especially for WebTransport session, stream, and datagram behavior.
This separation is deliberate. Extension authors should not collapse protocol support into a single string or infer framing from the transport name. Invalid combinations should remain explicit validation failures so runtime behavior is fail-closed.
Configuration Precedence
Core resolvers use this precedence pattern:
request override > operation spec > column spec > table spec > router spec > app spec > defaults
The most specific layer wins. Keep default policy broad, then narrow behavior by table, column, and operation. Avoid hidden mutation of spec objects after a runtime plan has been compiled; build a fresh spec or invalidate the relevant cache when behavior truly changes.
Schema Construction
Schema helpers build operation-specific request and response models from table metadata, column specs, request/response extras, list-parameter rules, and op-level configuration. get_schema(...) is the stable way to retrieve the generated model for a table operation and direction. Prefer it over hand-writing duplicate Pydantic envelopes when data belongs to a Tigrbl operation.
Best practices for schema work:
- Keep storage fields, wire fields, and virtual extras separate.
- Put reusable schema behavior in table or column specs; reserve op specs for operation-specific differences.
- Use canonical JSON helpers when writing deterministic docs or evidence artifacts.
- Treat generated schemas as projections of the specs, not as the source of truth.
Extension Guidance
- Depend on
tigrbl-corewhen you need spec classes, op collection, schema generation, or config resolution without concrete app/router/runtime imports. - Keep specs serializable and deterministic. Do not attach live database sessions, request objects, or transport handles to core specs.
- Validate protocol and binding assumptions in core or kernel-facing tests before adding runtime behavior.
- Keep application-facing convenience APIs in
tigrblortigrbl-concrete; keep cross-package contracts here.
Authoring BCP for this boundary:
- Do treat
ColumnSpec,FieldSpec,OpSpec,HookSpec,SchemaSpec,BindingSpec,EngineSpec,SessionSpec, and related specs as the contract vocabulary that other Tigrbl packages consume. - Do keep specs independent of FastAPI, Starlette, SQLAlchemy sessions, live request objects, and transport handles.
- Do not move application route authoring, direct database calls, concrete engine creation, or runtime dispatch side effects into
tigrbl-core. - Avoid duplicating spec fields in helper classes or generated schemas. Specs should remain the source that schema, docs, kernel, runtime, base, concrete, and facade layers project from.
Governance
Ownership and Decision Making
Changes to tigrbl-core follow the maintainer review process of tigrbl/tigrbl and its contribution guide. Author attribution remains in the manifest; this README does not assign new publishing or administrative authority.
Standards and Policies
tigrbl-core follows the versioned package-guide-v1 outline. All fixed headings, hierarchy, order, separators, and package-specific branding are checked by CI; reviewers assess the accuracy and usefulness of authored claims.
Lifecycle and Migration
Source and published versions are identified separately in the branding badges above. This change standardizes documentation and adds a development-only gate; it does not publish a new runtime version or declare a previously unpublished package released. Preserve explicit deprecation and replacement instructions where present.
License and Attribution
License
Licensed under Apache-2.0. See LICENSE.
Licensed under the Apache License, Version 2.0. See LICENSE, NOTICE, and the official Apache 2.0 license text.
Notices
See NOTICE for attribution.
Metadata
Release files for tigrbl-core 0.4.6.dev4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tigrbl_core-0.4.6.dev4.tar.gz | 100.5 kB | Without provenance | Details for tigrbl_core-0.4.6.dev4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tigrbl_core-0.4.6.dev4-py3-none-any.whl | Python 3 | none | any | Details for tigrbl_core-0.4.6.dev4-py3-none-any.whl |
Total release size: 219.6 kB
Release files / tigrbl_core-0.4.6.dev4.tar.gz
| Download URL | tigrbl_core-0.4.6.dev4.tar.gz |
|---|---|
| Size | 100.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d92b54e5e46de0c25173125bb5391dd6f4b816be6730a55b1952d905875265b7
|
|
BLAKE2b-256 checksum How to use checksums |
430992b036e46869c64dfec6c5b794045363c4f09961ac1fe957e4c773e3be83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tigrbl_core-0.4.6.dev4-py3-none-any.whl
| Download URL | tigrbl_core-0.4.6.dev4-py3-none-any.whl |
|---|---|
| Size | 119.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a7b5e0ad6452e03de62f744efe0d2449c7465acddb10f0a9e0a01775cb9a64b
|
|
BLAKE2b-256 checksum How to use checksums |
96337405064f82d6da7fb79888a31654a33bd4cbd9c229fb4999c5dddd1f1678
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tigrbl-core 0.4.6.dev4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.