Triad is a Python utility library primarily designed to support Fugue projects, offering a collection of common Python utilities for data processing, schema management, and function dispatching. It is currently at version 1.0.2 and maintains an active release cadence, often aligning with Fugue updates or addressing compatibility with key data science libraries like Pandas and PyArrow.
pip install triadVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates two core utilities of Triad: `FunctionWrapper` for validating function inputs and outputs based on regex patterns of types, and `Schema` for defining and managing data schemas, including conversions to/from Pandas DataFrames.
Migrate any usage of `triad.fs` utilities to direct `fsspec` or other file system library calls, or adapt to the new I/O utilities introduced after the change.
Always check `triad`'s release notes for specific Pandas version compatibility before upgrading either library. Pinning Pandas versions in `requirements.txt` is recommended for production environments. Ensure your `triad` version is compatible with your `pandas` version, or upgrade `triad` to the latest for broader compatibility.
For optimal performance with datetime operations, install `triad` with the `ciso8601` extra: `pip install triad[ciso8601]`.