Skip to main content

cellpy-core

The core engine of cellpy: fast, thread-safe processing of battery-cycling raw data. Given a raw data frame (polars, native schema — or pandas via the legacy bridge), it finds all steps and cycles and builds per-step and per-cycle summary tables. It is designed to be small, schema-injected, and easy for cellpy developers to build on and extend; instrument loaders, file IO, and unit handling stay out of the core.

import polars as pl
from cellpycore import Data, make_step_table, make_summary

data = Data.from_raw_frame(pl.read_parquet("my_native_raw.parquet"))
make_step_table(data, nom_cap=1.0)
make_summary(data)
print(data.steps, data.summary)

Installing

Available on PyPI as cellpycore:

pip install cellpycore

Source: https://github.com/cellpy/cellpy-core

Documentation

Full documentation (built with Zensical, hosted on Read the Docs): https://cellpy-core.readthedocs.io/

Key pages:

Build the docs locally with uv run --group docs zensical serve (config in zensical.toml; notebook-regeneration instructions in docs/examples/index.md).

Developing

This project uses uv as the package manager and build tool. uv is a fast Python package installer and resolver, written in Rust.

Prerequisites

  1. Install uv:
pip install uv

Development Workflow

  1. Install all dependencies (creates .venv automatically):
uv sync
  1. Adding new dependencies:
# Add a new package
uv add <package-name>

# Add a new development package
uv add --dev <package-name>
  1. Running tests:
uv run pytest

Common Commands

  • Reinstall dependencies from the lock file: uv sync
  • Remove a package: uv remove <package-name>
  • Upgrade all packages within constraints: uv sync --upgrade
  • Show the dependency tree: uv tree

For more information about uv, visit the official documentation.

Download files

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

Source Distribution

cellpycore-0.2.3.tar.gz (874.9 kB view details)

Uploaded Source

Built Distribution

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

cellpycore-0.2.3-py3-none-any.whl (90.7 kB view details)

Uploaded Python 3

File details

Details for the file cellpycore-0.2.3.tar.gz.

File metadata

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

File hashes

Hashes for cellpycore-0.2.3.tar.gz
Algorithm Hash digest
SHA256 2f8cee3d78b6d5049b74b5f64ee211b8d004816f31d4596522ac0ca6a2411614
MD5 5907d0c31f6d910a3e08b254cd6e9e26
BLAKE2b-256 d84b0626ac1bdbb7f2c6d805e04acd435c31156b1fa8b29bdba47b07ebcc42c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellpycore-0.2.3.tar.gz:

Publisher: release.yml on cellpy/cellpy-core

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

File details

Details for the file cellpycore-0.2.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for cellpycore-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97a45f5a1ecade8524e71d67ad13ce3bf8860d73bb74858bdf2a556166f2822c
MD5 803242d9e50696ba94a3e3be11cb8e01
BLAKE2b-256 e7d7b11b59bf45719ee951404c3040cd12458b3ff1052e11bc4983b2e3c9ff18

See more details on using hashes here.

Provenance

The following attestation bundles were made for cellpycore-0.2.3-py3-none-any.whl:

Publisher: release.yml on cellpy/cellpy-core

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

Release history Release notifications | RSS feed

0.2.4

2 files

This release

0.2.3 This release

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page