Metadata-Version: 2.4
Name: macmon-lib
Version: 0.7.0
Summary: Fast Python bindings for macmon with a bundled native library and no external runtime binaries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: cffi<2,>=1.17

# macmon-lib

Fast Python bindings for `macmon`.

The wheel bundles the native library, so it installs and runs without separate external binaries.

## Editable install

From the repository root:

```sh
make cmacmon
cd python
pip install -e .
```

## Wheel

From the repository root:

```sh
make python_wheel
```

The raw wheel is written to `python/dist/`.
The repaired wheel is written to `python/wheelhouse/`.

## Example

```sh
cd python
python example.py
```

The example prints `soc_info()` once and then streams metrics to the console until `Ctrl-C`.
If sampler initialization fails on the current host, it exits with the underlying `macmon` error message.
