Shared¶
Work in progress
This section is a work in progress. Please help us by contributing to the documentation.
This section contains concepts that are shared across the codebase.
Code layout¶
The src/tux/shared/ package holds cross-cutting utilities:
exceptions/— Tux-specific exception hierarchy; import public types fromtux.shared.exceptions(not a singleexceptions.pymodule).asyncio_gather.py— Helpers for interpreting results fromasyncio.gather(..., return_exceptions=True).config/— Pydantic settings and configuration models.constants.py— Shared constants.
Database-layer helpers that pair with gather patterns live under
src/tux/database/gather_results.py. For usage patterns, see
Error handling best practices.