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 Downloads

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.1.tar.gz (29.5 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.1-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: evrex-0.1.1.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for evrex-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1820ec68e655363366903f7ad4dd6be39d0d96dcda63fe2fdb373ba951fbf0a4
MD5 74f26f3be43ea1a05a866d401e49e3e0
BLAKE2b-256 ec1810d6752603368f13496b24ed8c02f36f2a447115322712056e3a9e7594de

See more details on using hashes here.

Provenance

The following attestation bundles were made for evrex-0.1.1.tar.gz:

Publisher: publish.yml on Net-Zero-Horizon/evrex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: evrex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for evrex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c70cc71e228e8b2a33d0b2fda26a2d1cd619acd58ac17c460d8219764d476b89
MD5 56f9bdf520627ef0278650827fa0adc2
BLAKE2b-256 79a712eec951f00c385779830e5cade3d3e30094ff6cbbf1c26dd038dbbf51c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for evrex-0.1.1-py3-none-any.whl:

Publisher: publish.yml on Net-Zero-Horizon/evrex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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