Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tigrbl-atoms

Tigrbl

tigrbl-atoms

Runtime atom package for Tigrbl stages, phases, typed contexts, event anchors, protocol execution, and composable pipeline algebra.

pypi: tigrbl-atoms Source version: 0.4.6.dev2 Python: >=3.10,<3.15 Layer: 40_atoms Lifecycle: active License: Apache-2.0 Notice: attribution

Monthly PyPI downloads: tigrbl-atoms README hits: tigrbl-atoms

README standards: CI gate Tests: example source Certification: not certified Governance: repository policy Evidence: source and CI

Overview · Installation · Quick Start · Usage · API · Contributing · Governance · License


Overview

Summary

tigrbl-atoms: Runtime atom package for Tigrbl stages, phases, typed contexts, event anchors, protocol execution, and composable pipeline algebra.

Why This Package

Use it when you need this foundational Tigrbl layer directly as a small, focused dependency.

When to Use

Choose tigrbl-atoms 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

  • UploadedFile: declared in tigrbl_atoms/_request.py
  • Request: declared in tigrbl_atoms/_request.py
  • BatchPolicy: declared in tigrbl_atoms/atoms/batch/_types.py
  • BatchAdmission: declared in tigrbl_atoms/atoms/batch/_types.py
  • BatchGroup: declared in tigrbl_atoms/atoms/batch/_types.py
  • AtomImpl: declared in tigrbl_atoms/atoms/batch/abort_group.py
  • AtomImpl: declared in tigrbl_atoms/atoms/batch/admit.py
  • AtomImpl: declared in tigrbl_atoms/atoms/batch/await_seal.py

Non-Goals

tigrbl-atoms owns runtime atom package for Tigrbl stages, phases, typed contexts, event anchors, protocol execution, and composable pipeline algebra. 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-ops-oltp, tigrbl-ops-olap, tigrbl-ops-realtime, tigrbl-ops-webtransport, tigrbl-core, tigrbl-typing, jinja2, sqlalchemy, typing-extensions. Read the example’s inputs and service requirements before execution.

Installation

uv

uv add tigrbl-atoms

pip

python -m pip install tigrbl-atoms

Poetry

poetry add tigrbl-atoms

Quick Start

Example

Source: docs/readme/quick_start.py.

import importlib

module = importlib.import_module("tigrbl_atoms")
print(module.__name__)

Expected Result

The example demonstrates the documented tigrbl-atoms 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_atoms")
print(module.__name__)

Verify the installed package

python -m pip show tigrbl-atoms
python - <<'PY'
from importlib.metadata import version
print(version("tigrbl-atoms"))
PY

Import the package boundary

Import a public symbol

from tigrbl_atoms import EGRESS_PHASES

print(EGRESS_PHASES)

Use with the facade when building applications

uv add tigrbl tigrbl-atoms
python - <<'PY'
import tigrbl
print(tigrbl.__name__)
PY

Configuration

Configure tigrbl-atoms 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-atoms source raises AssertionError, AttributeError, BufferError, CallbackRuntimeError, FileNotFoundError, HTTPException, KeyError, LookupError, NotImplementedError, PermissionError. Handle these at the calling boundary and consult the implementation for the triggering conditions.

Best Practices

Use the explicit tigrbl-atoms imports documented below and keep collaborator configuration with the caller. Run the package’s relevant tests after changing EGRESS_PHASES, EdgeTarget, ErrorCtx, HANDLER_PHASES, HookPhase, HookPhases, HookPredicate, INGRESS_PHASES, PHASE_SEQUENCE, PhaseTreeEdge, PhaseTreeNode, StepFn, TypedErr, VALID_HOOK_PHASES, build_error_ctx; an import or successful installation alone does not establish its runtime guarantees.


Package Boundary

What It Owns

tigrbl-atoms 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_atoms: _ctx, _opview_helpers, _request, algebra, atoms/, events, fallback, phases, protocol_runtime, runtime_callbacks, runtime_channel, runtime_transactions

Package catalog:

  • phases.py and stages.py: lifecycle phase names, aliases, stage transitions, transaction flags, and error-phase metadata.
  • _ctx.py, _request.py, types.py, and events.py: typed context, request, event, and callable contracts shared by kernel/runtime code.
  • algebra.py: composable pipeline helpers for sequencing runtime work.
  • atoms/ingress: context initialization, transport extraction, and input preparation.
  • atoms/dispatch: binding matching, binding parsing, operation resolution, and input normalization.
  • atoms/dep: security dependency, general dependency, and parameter resolution units.
  • atoms/wire: input schema construction, input validation, output construction, and dump/serialization units.
  • atoms/sys: default system handlers for CRUD, bulk, analytics, realtime, transport, transaction, and persistence operations.
  • atoms/storage, atoms/out, atoms/response, atoms/egress, and atoms/err: storage conversion, masking, response negotiation/rendering, transport egress, error shaping, and rollback.
  • atoms/batch, atoms/fanout, atoms/hot, atoms/intent, and atoms/transport: batch scheduling, fanout shaping, hot slots, intent grouping, and transport sink/capture units.
  • protocol_runtime.py, runtime_channel.py, runtime_callbacks.py, and runtime_transactions.py: helpers used by runtime-owned protocol execution.

This file is a package-local distribution entry point. This README is the package-local distribution entry point for tigrbl-atoms. 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

Entry Points

This package declares no command-line, GUI, or plugin entry points in its manifest.

Injected Dependencies

The direct installation dependencies of tigrbl-atoms are tigrbl-ops-oltp, tigrbl-ops-olap, tigrbl-ops-realtime, tigrbl-ops-webtransport, tigrbl-core, tigrbl-typing, jinja2, sqlalchemy, typing-extensions. 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-workspace, tigrbl-base, tigrbl-kernel, tigrbl-runtime, tigrbl-concrete, tigrbl. These edges describe declared dependencies, not protocol-conformance evidence.

Extensions

For tigrbl-atoms, use the source-declared public interfaces (EGRESS_PHASES, EdgeTarget, ErrorCtx, HANDLER_PHASES, HookPhase, HookPhases, HookPredicate, INGRESS_PHASES, PHASE_SEQUENCE, PhaseTreeEdge, PhaseTreeNode, StepFn, TypedErr, VALID_HOOK_PHASES, build_error_ctx) 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-atoms 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-atoms. 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-atoms 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-atoms 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-atoms package directory for the maintained example source checks (Python compilation and non-Python file presence). Existing package tests include:

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/tigrbl workspace.
  • 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.py verifies every package README keeps the Discord badge, Apache 2.0 badge, explicit Python-version badge, LICENSE, and NOTICE.
  • 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-atoms provides runtime atom package for Tigrbl stages, phases, typed contexts, event anchors, protocol execution, and composable pipeline algebra; 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-atoms, and consult package source for the exact types and signatures involved.

When

When should I validate an upgrade? Recheck tigrbl-atoms whenever its source version, declared collaborators, configuration, or caller changes. Run relevant behavioral tests in addition to the README gate before promotion.


More Documentation


Contributing

How to Contribute

Follow the contribution guide and include a focused example or regression for changes to tigrbl-atoms. Keep package behavior, its documented boundary, and its tests aligned.

Development Setup

Work from the pkgs/40_atoms/tigrbl_atoms 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-atoms?

Runtime atom package for Tigrbl stages, phases, typed contexts, event anchors, protocol execution, and composable pipeline algebra.

When should I install tigrbl-atoms?

Install it for extension packages, package-local tests, or internals that need this boundary without the whole facade.

Who is tigrbl-atoms for?

Framework maintainers, extension authors, and advanced users composing Tigrbl from split packages.

Where does tigrbl-atoms fit?

tigrbl-atoms lives at pkgs/40_atoms/tigrbl_atoms and serves a focused layer in the split Tigrbl framework.

How does tigrbl-atoms work?

It owns a narrow layer in the split workspace and is consumed by higher-level packages through explicit dependencies.

Inbound materialization belongs to wire.validate_in, which uses the core schema materializer and declared field types (or mapped storage types when no field type is declared). Member identifiers are selector inputs even when the primary key is not writable. Route selectors take precedence over payload identifiers and invalid selectors raise 422 before persistence. Persistence atoms consume the validated payload and path carriers, including bulk values; CRUD helpers do not repeat type coercion. Selector operations currently use the full atom pipeline because the compiled scalar input shortcut does not implement route alias and selector precedence validation. CRUD operations retain their existing flush-only transaction contract; the caller owns commit or rollback.

Install

uv add tigrbl-atoms
pip install tigrbl-atoms

Surface Coverage

Surface Value
PyPI package tigrbl-atoms
Repository path pkgs/40_atoms/tigrbl_atoms
Python import root tigrbl_atoms
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

Lifecycle Phases

Atoms are organized around the runtime lifecycle:

Group Phases Meaning
Ingress INGRESS_BEGIN, INGRESS_PARSE, INGRESS_DISPATCH Receive a transport unit, initialize context, parse input, and resolve the target binding/operation.
Transaction and handler PRE_TX_BEGIN, START_TX, PRE_HANDLER, HANDLER, POST_HANDLER, PRE_COMMIT, TX_COMMIT Prepare policy, open or attach transaction state, validate input, run handlers, post-process, and commit when Tigrbl owns the transaction.
Egress POST_COMMIT, EGRESS_SHAPE, EGRESS_FINALIZE, POST_RESPONSE Shape output, apply response rules, finalize transport output, and run after-response work.
Error ON_ERROR, phase-specific ON_*_ERROR, TX_ROLLBACK Classify errors, shape error responses, and roll back transaction-owned work.

END_TX, ON_END_TX_ERROR, and ON_ROLLBACK are compatibility aliases for TX_COMMIT, ON_TX_COMMIT_ERROR, and TX_ROLLBACK. New docs and new atoms should use the current names.

Atom Semantics

An atom is a small, named runtime unit. It should do one thing, take context from the compiled plan, and leave the context in the expected next stage. Atoms are intentionally smaller than handlers:

  • ingress atoms do not perform persistence;
  • dispatch atoms do not execute business logic;
  • wire atoms do not choose transport routes;
  • storage atoms do not commit transactions;
  • egress atoms do not reopen handler work;
  • error atoms should be deterministic and avoid masking the original failure unless policy requires it.

This separation lets the kernel produce readable labels, lets diagnostics explain execution order, and lets runtime transports share behavior across REST, JSON-RPC, stream, SSE, WebSocket, WSS, and WebTransport surfaces.

System Handler Catalog

The atoms/sys package contains default handlers and transaction units used by operation packs and runtime plans. The catalog includes scalar CRUD handlers (create, read, update, replace, merge, delete, list, clear), bulk handlers, analytical handlers (count, exists, aggregate, group_by), realtime handlers (publish, subscribe, tail), stream/file handlers (upload, download, append_chunk, checkpoint), custom/no-op handlers, persistence helpers, and transaction helpers such as start_tx, phase_db, and commit_tx.

Use system handlers when implementing framework behavior. Application code should normally reach these through operations on a Tigrbl app or model rather than importing a handler atom directly.

Transaction Discipline

Transaction atoms and database guards exist so user hooks and system handlers do not silently commit or flush at the wrong phase. The broad rule is:

  • before START_TX, do not assume a database transaction exists;
  • from START_TX through PRE_COMMIT, in-transaction validation and handler work may proceed under guards;
  • TX_COMMIT owns final commit when Tigrbl owns the transaction;
  • POST_COMMIT, EGRESS_*, and POST_RESPONSE should not mutate transaction-owned state;
  • TX_ROLLBACK performs rollback and cleanup for failures.

If you add or modify an atom, make its transaction expectations explicit in tests. Do not hide direct session commits inside validation, response, transport, or error atoms.

Transport and Protocol Atoms

Transport atoms model runtime units instead of broad protocol names. A WebSocket message, an SSE event, an HTTP stream chunk, and a WebTransport datagram are different units even when they carry similar payloads. Keep family, exchange, framing, lane, subevent, and handler intent separate.

Practical guidance:

  • Use ingress/dispatch atoms to parse and resolve transport units.
  • Use protocol/runtime helpers to carry channel metadata.
  • Use response and egress atoms to render or emit units.
  • Preserve fail-closed behavior for unsupported protocol/framing/lane combinations.

Extension Guidance

  • Add atoms when the behavior is reusable, phase-specific, and independently testable.
  • Keep application policy in hooks or dependencies, not in generic atoms.
  • Keep atom names stable and descriptive; they show up in kernel diagnostics.
  • Avoid broad atoms that parse, validate, execute, persist, and render at once.

Governance

Ownership and Decision Making

Changes to tigrbl-atoms 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-atoms 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-atoms 0.4.6.dev3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tigrbl-atoms 0.4.6.dev3
File Size Uploaded Provenance Actions
tigrbl_atoms-0.4.6.dev3.tar.gz 134.6 kB Without provenance Details for tigrbl_atoms-0.4.6.dev3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tigrbl-atoms 0.4.6.dev3
File Interpreter ABI Platform Actions
tigrbl_atoms-0.4.6.dev3-py3-none-any.whl Python 3 none any Details for tigrbl_atoms-0.4.6.dev3-py3-none-any.whl

Total release size: 344.8 kB

Release files / tigrbl_atoms-0.4.6.dev3.tar.gz

Download URL tigrbl_atoms-0.4.6.dev3.tar.gz
Size 134.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b9b35489c06bca8b4ccd8259ff028d261533c7eb74abc5491012ee0aab994852
BLAKE2b-256 checksum
How to use checksums
1bd5c98a7136a54917ff140530d581057d85ba4d8941cebf9c441f2be4cf5be7
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_atoms-0.4.6.dev3-py3-none-any.whl

Download URL tigrbl_atoms-0.4.6.dev3-py3-none-any.whl
Size 210.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec8d11b7b063a16c6db14db7dec527e334208d02b319d1a90fa1821aabe21e29
BLAKE2b-256 checksum
How to use checksums
fc8c9ee0a856efd746ea307f75410b72ca3bf1e1f27b1e88816faf2a13e175a0
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-atoms 0.4.6.dev3

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.

Release history Release notifications | RSS feed

This release
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