Skip to main content

EVreX - EV Resource eXchange: electric vehicle fleet adoption modeling, V2G potential, and grid impact assessment

Project description

EVreX - EV Resource eXchange

Tests DOI

A Python library for electric vehicle fleet electrification assessment, adoption modeling, V2G potential analysis, battery degradation modeling, and grid impact assessment.

Installation

pip install evrex

With optional dependencies:

pip install evrex[fetch]   # OSM, World Bank, IMF data fetchers
pip install evrex[viz]     # Matplotlib visualization
pip install evrex[all]     # Everything

Quick Start

from evrex import (
    TransportContext,
    EVMacroData,
    run_ev_bass_diffusion,
    run_ev_tco_parity,
    generate_charging_profiles,
    compute_v2g_potential,
    compute_battery_degradation,
    assess_grid_impact,
)

# Define transport context
transport = TransportContext(
    fleet_by_category={"light": 5000, "medium": 800, "heavy": 200, "buses": 100},
    charging_stations=120,
    population=500_000,
)

# Run Bass diffusion adoption model
curve = run_ev_bass_diffusion(transport, base_year=2025, target_year=2050)
print(f"EV penetration by 2050: {curve.penetration[-1]:.1%}")
print(f"Peak charging demand: {curve.peak_charging_mw[-1]:.1f} MW")

# Battery degradation analysis
deg = compute_battery_degradation(v2g_cycles_per_day=0.5, chemistry="LFP")
print(f"Degradation: {deg.total_degradation_pct_per_year:.2f}%/year")
print(f"Break-even V2G rate: ${deg.breakeven_compensation:.0f}/MWh")

Adoption Models

Four methods for projecting EV fleet evolution:

Method Function Key Drivers
Logistic run_ev_logistic_adoption() GDP, fuel price, EV cost, infrastructure
Bass Diffusion run_ev_bass_diffusion() Innovation (p) and imitation (q)
TCO-Parity run_ev_tco_parity() Total cost of ownership comparison
Policy-Driven run_ev_policy_driven() ICE bans, emission targets, scrappage

Modules

  • evrex.core - Adoption models, charging profiles, V2G, degradation, grid impact
  • evrex.data - OSM, World Bank, IMF, IEA (bundled), BNEF (bundled) data

License

MIT

Project details


Download files

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

Source Distribution

evrex-0.1.0.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

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

evrex-0.1.0-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file evrex-0.1.0.tar.gz.

File metadata

  • Download URL: evrex-0.1.0.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for evrex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce451df1f2267ab8c55ab40f80d475c10c3bbba21ef24f3c68cac99ba1becaa4
MD5 6c33fb829220fddd02631a08c7e4f26a
BLAKE2b-256 91c93a8031ecbf1be4da6feb476b3638b5955f8ee00ee23d6bf6f1451b0fc3a0

See more details on using hashes here.

File details

Details for the file evrex-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: evrex-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for evrex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7afc8d4c4d46e10e10b64339691fe8c99255ddd1437c635e6cae0e499ab1bc0
MD5 957a81744790fd583548d3cd5137293c
BLAKE2b-256 97ca6bab030cfd65750e6d6ae3dc27f7c78fb34b263e5a867a0778e781e7d0cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page