Metadata-Version: 2.4
Name: microcycler
Version: 0.1.53
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Science/Research
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
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Dist: cryptography>=41 ; extra == 'all'
Requires-Dist: numpy>=1.24 ; extra == 'dev'
Requires-Dist: scipy>=1.10 ; extra == 'dev'
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: pytest-asyncio ; extra == 'dev'
Requires-Dist: pytest-html ; extra == 'dev'
Requires-Dist: maturin ; extra == 'dev'
Requires-Dist: twine ; extra == 'dev'
Requires-Dist: cryptography>=41 ; extra == 'signing'
Requires-Dist: numpy>=1.24 ; extra == 'twin'
Requires-Dist: scipy>=1.10 ; extra == 'twin'
Provides-Extra: all
Provides-Extra: dev
Provides-Extra: signing
Provides-Extra: twin
Summary: Python SDK for the Microcycler battery testing platform
Keywords: battery,cycler,electrochemistry,EIS,testing,lab
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://docs.microcycler.io
Project-URL: Homepage, https://github.com/your-org/microcycler
Project-URL: Issues, https://github.com/your-org/microcycler/issues

# Microcycler Python SDK

Python SDK for the [Microcycler](https://docs.microcycler.com) battery cycler: control cyclers, run tests, follow telemetry and alerts, download and
analyse the files a test writes, and update firmware.

```bash
pip install microcycler
```

Python 3.9 or newer. The package is a thin Python layer over a Rust core (`core/` in the repository, the same code the Microcycler dashboard and the
headless uplink agent run), shipped as one prebuilt wheel per platform, so installing needs no compiler.

```python
import asyncio
from microcycler import Cycler

async def main():
    async with Cycler("169.254.10.42") as cycler:
        t = await cycler.get_telemetry()
        print(t.state, t.voltage, t.current)

asyncio.run(main())
```

The documentation is in `documentation/docs/sdk/` and on the documentation site:

- **Overview**, **Connecting**, **Running tests**, **Recipe steps**: connect, build a recipe, start it, store recipes on the cycler.
- **Direct control**: scripts that set the current or voltage themselves, and the `microcycler-dynamic` command.
- **Monitoring**, **Files and the SD card**, **Analysing the files**: telemetry, alerts, downloading and analysing test files.
- **Cell twin**, **Firmware updates**, **Fleets and the uplink agent**, and a generated **Reference** of every public class and function.

Two command-line tools are installed with the package: `microcycler-dynamic` (run a script against one or more cyclers) and `microcycler-agent` (the
headless uplink agent).

The SDK is under development and its API may change between releases.

