AHI Python Packages¶
Internal Python libraries for Adaptive Health Intelligence, published as a
uv workspace monorepo. Each library is its
own distribution with its own version, but they share one repo, one lockfile,
and one ahi.* import namespace.
The packages¶
| Package | Install | Import | What it's for |
|---|---|---|---|
| ahi-core | ahi-core |
ahi.core |
Cross-cutting helpers (polling, errors, logging). |
| ahi-sql | ahi-sql |
ahi.sql |
Small, dependency-light SQL helpers. |
| ahi-aws | ahi-aws |
ahi.aws |
Thin, typed boto3 helpers — AWS auth, Redshift, Athena & S3. |
They compose into one namespace, so consumers write:
from ahi.aws.redshift import RedshiftDataClient
from ahi.sql import quote_identifier
from ahi.core import poll_until
Design at a glance¶
- Separate distributions. Install only what you need — a service that only
queries Redshift pulls
ahi-aws(+boto3+ahi-core) and nothing else. - Independent versions. Each package versions on its own cadence via
Release Please.
ahi-awsdepends on a range ofahi-core(>=0.1,<0.2), not a pin. - Shared
ahinamespace via PEP 420 — noahi/__init__.py, each distribution contributes a subpackage. - Published on PyPI.
uv add ahi-awsjust works.
Start with Installation.