Skip to main content

OSS Python toolkit for TOYO battery cycler data (charge/discharge, dQ/dV, cycle stats). Installable from PyPI into Origin's embedded Python.

Project description

toyo-battery

OSS Python toolkit for TOYO battery cycler data.

Reads output from TOYO System battery charge/discharge testers, computes cycle capacity, Coulombic efficiency, dQ/dV curves, and summary statistics. Pure Python, installable from PyPI — including into OriginLab's embedded Python.

Status: 0.0.1 — pre-alpha scaffold. Core logic is being ported from the private TOYO_origin scripts. Public API is unstable.

Installation

# Core only
pip install toyo-battery

# With Matplotlib plotting
pip install "toyo-battery[plot]"

# Everything except Origin
pip install "toyo-battery[all]"

CLI

With the [cli] extra (pip install "toyo-battery[cli]") the toyo-battery command offers batch operations over one or more cell directories:

toyo-battery process cell_A cell_B --out ./csvs        # chdis/cap/dqdv CSVs
toyo-battery plot    cell_A cell_B --out ./pngs        # chdis/cycle/dqdv PNGs
toyo-battery stats   cell_A cell_B --cycles 10,50 --out stats.csv

Installing into Origin's embedded Python

Open Origin, go to Connectivity → Python Packages, then in the Origin Python console:

import subprocess
import sys

subprocess.check_call([sys.executable, "-m", "pip", "install", "toyo-battery"])

The toyo_battery.origin submodule uses originpro (shipped with Origin) and is only importable inside Origin's Python environment.

Quick start

from toyo_battery import Cell

cell = Cell.from_dir("path/to/cell_dir")
cell.cap_df.to_csv("cycle.csv")

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toyo_battery-0.0.1.tar.gz (78.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toyo_battery-0.0.1-py3-none-any.whl (57.4 kB view details)

Uploaded Python 3

File details

Details for the file toyo_battery-0.0.1.tar.gz.

File metadata

  • Download URL: toyo_battery-0.0.1.tar.gz
  • Upload date:
  • Size: 78.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for toyo_battery-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3285ec28a6dfc4a0429f94ee675fc5ed41c268e9154cb4de19849fc3806e533a
MD5 fa956b656333ca857d52f55c3cb3bdc8
BLAKE2b-256 2178b5d10ba56403ed879bb4a9c7a2a04de32d7c4c0a96f2df07c8be07708965

See more details on using hashes here.

Provenance

The following attestation bundles were made for toyo_battery-0.0.1.tar.gz:

Publisher: publish.yml on tomooki/toyo-battery

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file toyo_battery-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: toyo_battery-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 57.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for toyo_battery-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dbeb8c2d3c630c4fad56ac16a9ae2b3c67caf5187e11e73fc060a3af507ce17e
MD5 7ca9da8158de0022122d1e3c641429c9
BLAKE2b-256 871f15f7d017039f7f1ce2c3109afd17c640294fb8a90a0bec82ded018adf190

See more details on using hashes here.

Provenance

The following attestation bundles were made for toyo_battery-0.0.1-py3-none-any.whl:

Publisher: publish.yml on tomooki/toyo-battery

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page