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.

Metadata

Release files for cellpycore 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cellpycore 0.2.6
File Size Uploaded
cellpycore-0.2.6.tar.gz 889.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cellpycore 0.2.6
File Interpreter ABI Platform
cellpycore-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 982.6 kB

Release files / cellpycore-0.2.6.tar.gz

Download URL cellpycore-0.2.6.tar.gz
Size 889.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e447cd8d7c0fb3ecff2a8220598c401bc472bb2c58f11962736dc48a6e66c33d
BLAKE2b-256 checksum
How to use checksums
a9db8f05e83f927d3ea0d002855068b434cf3cc26877ffb9cde388cc6373feae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / cellpycore-0.2.6-py3-none-any.whl

Download URL cellpycore-0.2.6-py3-none-any.whl
Size 93.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fe693c061b21314117743edc31facc122c64814604a917715e90b23c81dbf14
BLAKE2b-256 checksum
How to use checksums
9f965aa2a78f6e30ba7db99cfbc9e8a93dfecf88191561bd2eb377cf63ac22d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release 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