openwec
Python SDK for endurance racing data — WEC, ELMS, ALMS, Le Mans Cup, IMSA.
Inspired by FastF1, OpenWEC gives you lap-by-lap timing data, stint analytics, and race results from endurance racing as pandas DataFrames — in one line.
→ openwec.com — Live dashboard
→ api.openwec.com/docs — API reference
→ github.com/palomacdev/openwec — Source
Installation
pip install openwec
# With plotting support
pip install openwec[plotting]
Quick start
import openwec
# Configure — public endpoints work without a key
# Request a free key at https://openwec.com/api-keys
openwec.configure(
api_key="your-key-here" # required for laps and analytics
)
# Load any session
session = openwec.Session("WEC", 2026, "Le Mans", "Race")
print(session)
# Session(WEC 2026 LE MANS — Race, id=6556)
# Results as a DataFrame (no key needed)
results = session.results()
print(results[["position", "car_number", "car_class", "team", "drivers"]].head(10))
# Lap-by-lap data (key required)
laps = session.laps(car="7")
print(laps[["lap_number", "lap_time_s", "s1_s", "s2_s", "s3_s"]].head())
# Stints and pace (key required)
stints = session.stints(car_class="HYPERCAR")
pace = session.pace(car_class="HYPERCAR")
# Pit window estimate
pit_window = session.pit_window(car="7")
# Plots (requires matplotlib)
session.plot_lap_evolution(car="7")
session.plot_stint_chart(car_class="HYPERCAR")
session.plot_gap_to_leader(car_class="HYPERCAR")
Coverage
| Series | Seasons |
|---|---|
| FIA WEC | 2012–2026 |
| ELMS | 2012–2026 |
| ALMS (Asian) | 2022–2026 |
| Le Mans Cup | 2017–2026 |
| IMSA | 2014–2026 |
1.77M+ laps across all series.
API key
Public endpoints (results, driver profiles, team profiles) require no key.
Lap-by-lap data and analytics endpoints require a free API key.
→ Request a key at openwec.com/api-keys
Session methods
| Method | Returns | Key required |
|---|---|---|
.results() |
DataFrame | No |
.laps(car=None) |
DataFrame | Yes |
.stints(car_class=None) |
DataFrame | Yes |
.pace(car_class=None) |
DataFrame | Yes |
.gaps(car_class=None) |
DataFrame | Yes |
.pit_window(car=None) |
DataFrame | Yes |
.plot_lap_evolution(car) |
Figure | Yes |
.plot_stint_chart() |
Figure | Yes |
.plot_gap_to_leader() |
Figure | Yes |
License
MIT — data sourced from Al Kamel Systems public timing exports.
Not affiliated with ACO, FIA, or any racing organization.
Metadata
Release files for openwec 0.2.0
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 |
|---|---|---|---|---|
| openwec-0.2.0.tar.gz | 12.3 kB | Without provenance | Details for openwec-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openwec-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for openwec-0.2.0-py3-none-any.whl |
Total release size: 24.4 kB
Release files / openwec-0.2.0.tar.gz
| Download URL | openwec-0.2.0.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
799d3f029e6569e50156fe2ddc8ec223246b1af12c5b0497cd4ba38dc559ac92
|
|
BLAKE2b-256 checksum How to use checksums |
c8d5d01cd5cd78794d29589bc3d09b9bfcc15800ca6d7bcee3f17fa85d9e6451
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / openwec-0.2.0-py3-none-any.whl
| Download URL | openwec-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
258955b6bd5ff1da3159ed667833065988cb94ce3ec2e513aff0f4f6893213e2
|
|
BLAKE2b-256 checksum How to use checksums |
7877d4540eeccc9f1888138b04c7acbc34ad779adc28c2af5ec0f76ffe77f7a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for openwec 0.2.0
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.