CHAMPPy
CHAMPPy (Charging and Mobility Profiles in Python) is a Python library to generate synthetic mobility and charging profiles for different types of electric vehicles (EVs) including vans, trucks, busses and passanger cars.
Road transport decarbonization requires realistic charging demand models across all vehicle classes. However, most existing studies and publicly available tools focus on private passenger cars. Commercial electric vehicles such as vans and trucks are often underrepresented despite their major relevance for emissions and grid impacts. CHAMPPy is an open Python package that addresses this gap by generating synthetic driving and charging profiles for different EV types, including commercial fleets. The model combines a Markov chain to represent vehicle locations over time with beta-distributed journey speeds, from which trip distances are derived, and uses dedicated algorithms to generate mobility and charging profiles. An optional clustering approach increases profile heterogeneity and is particularly useful when analyzing individual profiles.
🛠️ CHAMPPy supports two workflows:
- 🚀 Light: Use existing parameters to quickly generate drving and charging profiles with user-defined settings (e.g., simulation period, number of vehicles, charging power, battery capacity). An example of this workflow is provided in notebooks/01_demo_without_parameterization.ipynb.
- 🧪 Full: Re-parameterize the model with custom reference data (e.g. driving data for other countries, vehicle classes, or fleets). Afterwards, you can generate drving and charging profiles from your model parameters. An example of this workflow is provided in notebooks/02_demo_with_parameterization.ipynb
Links
- Documentation: https://champpy.readthedocs.io
- Source code: https://github.com/ffe-munich/CHAMPPy
- PyPI releases: https://pypi.org/project/champpy/
- License: http://opensource.org/licenses/MIT
Authors
CHAMPPy has been developed by Florian Biedenbach (lead), Valentin Preis und Daniel Godin.
Repo structure
CHAMPPy/
├── src/champpy/ # Main package source code
│ ├── __init__.py
│ ├── core/ # Core functionality
│ │ ├── __init__.py
│ │ ├── charging/ # Charging profile module
│ │ │ ├── __init__.py
│ │ │ ├── charging_model.py # Model to generate charging profiles
│ │ │ └── charging_validation.py # Charging validation & plotting
│ │ └── mobility/ # Mobility profile module
│ │ ├── __init__.py
│ │ ├── mobility_cleaning.py # Data cleaning
│ │ ├── mobility_components.py # Data components
│ │ ├── mobility_data.py # Data structures
│ │ ├── mobility_model.py # Model to generate profiles
│ │ ├── mobility_validation.py # Validation & plotting
│ │ └── parameterization.py # Parameter extraction
│ ├── utils/ # Utilities
│ │ ├── __init__.py
│ │ ├── data_utils.py # Ddata helpers
│ │ ├── logging.py # Logging configuration
│ │ └── time_utils.py # Time utilities
| └── data/
│ ├── params_info.parquet # Info about existing model parameters
│ └── params.parquet # Existing model parameters
├── notebooks/ # Jupyter notebooks
│ ├── 01_demo_without_parameterization.ipynb # Demo notebook 1
│ └── 02_demo_including_parameterization.ipynb # Demo notebook 2
├── scripts/ # Python scripts
├── tests/ # Test suite
├── data/ # Data directory
├── plots/ # Generated plots (HTML files)
├── pyproject.toml # Project configuration
├── LICENSE # License file
└── README.md # This file
Installation
To install CHAMPPy on Windows, follow the steps below. For installation on Linux/Mac, please check the installation documentation.
Prerequisites
- Python 3.11 or higher
- pip
Install from source on windows
# Clone the repository
git clone https://github.com/ffe-munich/CHAMPPy.git
cd CHAMPPy
# Create a virtual environment
py -m venv .venv
# Activate virtual environment
.\.venv\Scripts\activate
# Install the package
pip install .
Install from PyPI on windows
# Create a virtual environment
py -m venv .venv
# Activate virtual environment
.\.venv\Scripts\activate
pip install champpy
Metadata
Release files for champpy 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| champpy-0.1.5.tar.gz | 309.1 kB | With provenance | Details for champpy-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| champpy-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for champpy-0.1.5-py3-none-any.whl |
Total release size: 476.4 kB
Release files / champpy-0.1.5.tar.gz
| Download URL | champpy-0.1.5.tar.gz |
|---|---|
| Size | 309.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72bef38fb47f76cf2d84e0236ecf32a720b21bfdea33dfd12bdc90045d2ab2ff
|
|
BLAKE2b-256 checksum How to use checksums |
947da6053be8edfb91c473f47e84093e5e49d55ba8862f5bd3017109c11ab6e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 12, 2026.
Transparency logRelease files / champpy-0.1.5-py3-none-any.whl
| Download URL | champpy-0.1.5-py3-none-any.whl |
|---|---|
| Size | 167.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7872dfb0a5a500ee9fc7fb4c227a4c3c7a0af700298ca8ecb0445047cbc1e48
|
|
BLAKE2b-256 checksum How to use checksums |
82d4b6182ab6172f43dcbdba104a30fd54433adbdaae008d4d0e9b527eebba2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 12, 2026.
Transparency logSecurity for champpy 0.1.5
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for champpy-0.1.5.tar.gz
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 Mar 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.