Metadata-Version: 2.4
Name: haematite
Version: 0.1.0
Summary: Runtime support for Haematite notebooks - variable extraction and export API
Project-URL: Homepage, https://github.com/tomWhiting/haematite
Project-URL: Repository, https://github.com/tomWhiting/haematite
Author: Haematite Contributors
License-Expression: MIT
License-File: LICENSE
Keywords: data-exploration,haematite,notebook,polyglot
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# haematite

Runtime support for [Haematite](https://github.com/tomWhiting/haematite) notebooks.

## Installation

```bash
pip install haematite
```

## Usage

Export values from your notebook cells:

```python
import haematite as hm

# Export a specific value
data = [1, 2, 3, 4, 5]
hm.export("my_data", data)

# Take a snapshot of all local variables
hm.snapshot("checkpoint")
```

Exported values are automatically captured and can be used in subsequent cells or visualizations.

## API

### `hm.export(name: str, value: Any) -> None`

Export a named value. The value is captured at the point of the call, preserving its state at that moment.

### `hm.snapshot(label: str, filter: Optional[List[str]] = None) -> None`

Capture all local variables at the current point. Optionally filter to specific variable names.

## License

MIT
