Skip to main content

MobEV

MobEV logo

Python PyPI uv

MobEV is a mobility-based, geolocalized electric-vehicle (EV) charging-demand model for distribution-network studies. It turns weekly car-trip templates into charging sessions, battery state-of-charge traces, and demand profiles at a configured timestep.

MobEV requires Python 3.13 or newer:

python -m pip install mobev
# or, in a uv project
uv add mobev

How it works

  1. Prepare trips: validate and expand weekday and weekend GeoPackages across the simulation dates.
  2. Build the scenario: sample EV ownership and vehicle attributes, assign parking and chargers, and prepare tariffs and optional weather.
  3. Simulate charging: process trips and parking chronologically to produce battery states, charging decisions, sessions, and active-slot power profiles.

Aggregation is a separate analysis step. Use it to sum charging power for the whole population or selected vehicles and locations, then plot or export it.

First run

Follow Getting started to create a minimal YAML configuration and two small synthetic trip GeoPackages. After creating those inputs, run:

from mobev import SimulationPipeline

pipeline = SimulationPipeline.from_yaml(
    config_path="example/config.yaml",
    trip_source_dir="example/trips",
)
result = pipeline.run()
print(result.charging_simulation.charging_sessions_df.head())

total = pipeline.aggregate(by="total")
print(total.aggregated_profiles_df.head())
total.plot(save_path="example/total.png")

The tutorial uses baseline consumption and a flat tariff. Temperature-based consumption requires enabling battery.consumption_mode: temperature and passing a separate hourly weather file. The repository's config/config.yaml is a study configuration that requires weather and tariff files.

Documentation

Metadata

Release files for mobev 0.5.1

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

Source distribution (sdist)

Source distribution for mobev 0.5.1
File Size Uploaded Provenance
mobev-0.5.1.tar.gz 184.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 329.5 kB

Release files / mobev-0.5.1.tar.gz

Download URL mobev-0.5.1.tar.gz
Size 184.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8601a5062cbdad8737bda77cc3ce1aa473d829ecf57a90b1e96b0f6a11e6c31d
BLAKE2b-256 checksum
How to use checksums
1d2f5494e2d8f3b79acc5c9921127db9e18bbc5b2ee1ca15a547bbc23c7d0847
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / mobev-0.5.1-py3-none-any.whl

Download URL mobev-0.5.1-py3-none-any.whl
Size 145.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01d8a42ea8f33d0d82894a3a2732efa25d2ae45c8b27d0ba7689bed352a86bcc
BLAKE2b-256 checksum
How to use checksums
97dc7470ecf5e0b73fd25f1464609c11b34501cfdc4903bbcaabc563bfc5d0f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for mobev 0.5.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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