Catalog PyPI
Back to packageRELEASE DETAILS

2.0.0

PyPI

aesb

A Python package for battery cell data analysis and visualization.

Published27 Jul 2025
Direct dependencies8
Transitive dependenciesNot calculated

README

Version 2.0.0 documentation

AESB: Advanced Energy Storage Analytics

aesb is a Python package for fetching, processing, analyzing, and visualizing battery cell data from various manufacturing databases. It is designed to help engineers and data scientists monitor battery quality, identify anomalies, and understand cell behavior.

Key Features

  • Data Fetching:
    • Connects to multiple database systems (MySQL, Doris) to retrieve battery cell data.
    • Fetches data based on cell IDs, date ranges, or specific manufacturing processes (CP).
    • Retrieves detailed FTP curve data for in-depth analysis.
    • Handles data from different manufacturing bases (e.g., 'jy', 'sy', 'ordos').
  • Data Processing:
    • Removes rework data to ensure analysis is based on first-pass results.
    • Enriches data with defect information.
    • Calculates dQ/dV, a key metric for battery health analysis.
  • Data Visualization:
    • Generates various plots to visualize cell characteristics and compare them with their peers.
    • Analyzes and plots feature distributions to identify outliers.
    • Visualizes FTP curves to understand charging and discharging behavior.
  • Data Management:
    • Provides a unified BatteryDataManager class to streamline data operations.
    • Allows uploading processed data back to a database.
    • Enables marking cells with defect codes directly through an API.

Installation

To install the project, you can use pip:

pip install .

Usage

To use the project, you can import the package and use the BatteryDataManager class:

from aesb import BatteryDataManager

# Initialize the data manager for a specific manufacturing base and line
dm = BatteryDataManager(base='jy', wip_line='JYP1')

# Get data for a list of cell IDs
cell_data = dm.get_data_by_cell_ids(['cell_id_1', 'cell_id_2'], cp_names=['CAP', 'FOR'])

# Get FTP curve data for a cell
curve_data = dm.get_curves_by_cell_ids(['cell_id_1'], proc='CAP')

# Analyze a cell and visualize its characteristics
dm.analyze_cell_cp('cell_id_1')

Development

To set up the development environment, first create a virtual environment:

python3 -m venv venv
source venv/bin/activate

Then, install the dependencies:

pip install -r requirements.txt

To run the tests:

python3 -m pytest

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 8

Native requirements
8 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
pandas
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pandasruntime
numpy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
numpyruntime
matplotlib
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
matplotlibruntime
scikit-learn
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
scikit-learnruntime
requests
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
requestsruntime
sqlalchemy
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
sqlalchemyruntime
pymysql
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
pymysqlruntime
tqdm
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.8",
  "evaluation": "NOT_EVALUATED"
}
tqdmruntime

Distribution files

2 collected
aesb-2.0.0-py3-none-any.whl

bdist_wheel · 28.62 KB · Python py3

Source file
aesb-2.0.0.tar.gz

sdist · 27.65 KB · Python source

Source file

Repository

ACCESSIBLE
pypa/sampleproject

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
main
Last push
6 Nov 2024
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

1,747count
Gauge · observed snapshots20 Oct 2026
1.7K873.50
2026-10-20: 1,747 · observed 2026-10-20T19:02:19.7884623Z
20 Oct20 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-201,7472026-10-20T19:02:19.7884623Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:49 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:6db919faa5b86372eeec0b0e252001fd1f486ce21eb70817a00e70bac0a896eb

Other collected versions

View all collected versions →