Metadata-Version: 2.4
Name: ahi-core
Version: 0.2.0
Summary: Cross-cutting helpers shared across AHI Python libraries (polling, errors, logging).
Project-URL: Homepage, https://github.com/adaptivehealthintelligence/ahi-python-packages
Project-URL: Documentation, https://adaptivehealthintelligence.github.io/ahi-python-packages/
Project-URL: Repository, https://github.com/adaptivehealthintelligence/ahi-python-packages
Author: Adaptive Health Intelligence
License: MIT
Keywords: ahi,utilities
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# ahi-core

Cross-cutting helpers shared across the AHI Python libraries. Deliberately
dependency-light — it should be safe to depend on from anywhere.

```python
from ahi.core import get_logger, poll_until, AhiError, PollTimeoutError
```

## What's here

- `poll_until(...)` — a generic "submit then wait for a terminal state" loop with
  exponential backoff and an injectable clock (used by `ahi-aws`).
- `get_logger(name)` — a namespaced logger under `ahi.*` with a `NullHandler`
  attached, so libraries never configure global logging.
- `AhiError` — base exception for everything in the AHI stack;
  `PollTimeoutError` is raised by `poll_until`.

Part of [ahi-python-packages](https://github.com/adaptivehealthintelligence/ahi-python-packages).
