openwec 0.3.0__tar.gz → 0.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openwec-0.3.2/LICENSE +47 -0
- {openwec-0.3.0 → openwec-0.3.2}/PKG-INFO +39 -18
- {openwec-0.3.0 → openwec-0.3.2}/README.md +36 -14
- {openwec-0.3.0 → openwec-0.3.2}/openwec/__init__.py +58 -55
- {openwec-0.3.0 → openwec-0.3.2}/openwec.egg-info/PKG-INFO +39 -18
- {openwec-0.3.0 → openwec-0.3.2}/pyproject.toml +56 -57
- openwec-0.3.0/LICENSE +0 -21
- {openwec-0.3.0 → openwec-0.3.2}/openwec/client.py +0 -0
- {openwec-0.3.0 → openwec-0.3.2}/openwec/plotting.py +0 -0
- {openwec-0.3.0 → openwec-0.3.2}/openwec/session.py +0 -0
- {openwec-0.3.0 → openwec-0.3.2}/openwec.egg-info/SOURCES.txt +0 -0
- {openwec-0.3.0 → openwec-0.3.2}/openwec.egg-info/dependency_links.txt +0 -0
- {openwec-0.3.0 → openwec-0.3.2}/openwec.egg-info/requires.txt +0 -0
- {openwec-0.3.0 → openwec-0.3.2}/openwec.egg-info/top_level.txt +0 -0
- {openwec-0.3.0 → openwec-0.3.2}/setup.cfg +0 -0
openwec-0.3.2/LICENSE
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
OpenWEC — Proprietary Software License
|
|
2
|
+
Copyright (c) 2026 Paloma Cordeiro. All rights reserved.
|
|
3
|
+
|
|
4
|
+
This software and its source code, documentation, configuration and data
|
|
5
|
+
schemas (the "Software") are proprietary and confidential.
|
|
6
|
+
|
|
7
|
+
NO LICENSE IS GRANTED. No permission is given to any person to use, copy,
|
|
8
|
+
modify, merge, publish, distribute, sublicense, sell, reverse engineer or
|
|
9
|
+
create derivative works of the Software, in whole or in part, by any means,
|
|
10
|
+
except under a separate written agreement signed by the copyright holder.
|
|
11
|
+
|
|
12
|
+
Access to the Software — including access granted through a source code
|
|
13
|
+
repository, a deployment, an installer or any other channel — does not grant
|
|
14
|
+
any right beyond what that separate written agreement states. Possession of a
|
|
15
|
+
copy is not permission to use it.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
21
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
22
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
THIRD-PARTY COMPONENTS
|
|
26
|
+
|
|
27
|
+
The Software depends on, and its builds bundle, third-party components that
|
|
28
|
+
remain under their own licenses. Nothing in this file changes, restricts or
|
|
29
|
+
supersedes those licenses, and their notices must be kept intact — including
|
|
30
|
+
the notices embedded in the compiled dashboard assets.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
PREVIOUSLY PUBLISHED VERSIONS
|
|
34
|
+
|
|
35
|
+
Versions of the `openwec` Python package published to PyPI before 2026-11-17
|
|
36
|
+
(0.1.0 through 0.3.0) were released under the MIT License. That grant is
|
|
37
|
+
irrevocable for the copies already distributed: whoever received those
|
|
38
|
+
versions keeps the MIT rights to them. This license governs this repository
|
|
39
|
+
and every version released from 2026-11-17 onward.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
RACING DATA
|
|
43
|
+
|
|
44
|
+
The racing data this Software reads and serves comes from Al Kamel Systems
|
|
45
|
+
public timing exports and is not owned by the copyright holder. See
|
|
46
|
+
DATA_POLICY.md. OpenWEC is not affiliated with the ACO, the FIA, IMSA or
|
|
47
|
+
Al Kamel Systems.
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openwec
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Python SDK for endurance racing data — WEC, ELMS, ALMS, Le Mans Cup, IMSA
|
|
5
5
|
Author: Paloma C.
|
|
6
|
-
License-Expression:
|
|
6
|
+
License-Expression: LicenseRef-Proprietary
|
|
7
7
|
Project-URL: Homepage, https://openwec.com
|
|
8
8
|
Project-URL: Documentation, https://api.openwec.com/docs
|
|
9
|
-
Project-URL:
|
|
10
|
-
Project-URL: Bug Tracker, https://github.com/palomacdev/openwec/issues
|
|
9
|
+
Project-URL: Contact, https://openwec.com/data-policy#data-refresh
|
|
11
10
|
Keywords: motorsport,endurance racing,WEC,Le Mans,ELMS,IMSA,timing data,lap times,pandas
|
|
12
11
|
Classifier: Development Status :: 3 - Alpha
|
|
13
12
|
Classifier: Intended Audience :: Developers
|
|
@@ -40,8 +39,7 @@ Dynamic: license-file
|
|
|
40
39
|
Inspired by [FastF1](https://github.com/theOehrly/Fast-F1), OpenWEC gives you lap-by-lap timing data, stint analytics, and race results from endurance racing as pandas DataFrames — in one line.
|
|
41
40
|
|
|
42
41
|
→ **[openwec.com](https://openwec.com)** — Live dashboard
|
|
43
|
-
→ **[api.openwec.com/docs](https://api.openwec.com/docs)** — API reference
|
|
44
|
-
→ **[github.com/palomacdev/openwec](https://github.com/palomacdev/openwec)** — Source
|
|
42
|
+
→ **[api.openwec.com/docs](https://api.openwec.com/docs)** — API reference
|
|
45
43
|
|
|
46
44
|
---
|
|
47
45
|
|
|
@@ -74,7 +72,7 @@ print(session)
|
|
|
74
72
|
results = session.results()
|
|
75
73
|
print(results[["position", "car_number", "car_class", "team", "drivers"]].head(10))
|
|
76
74
|
|
|
77
|
-
# Lap-by-lap data (key
|
|
75
|
+
# Lap-by-lap data for one car (no key needed)
|
|
78
76
|
laps = session.laps(car="7")
|
|
79
77
|
print(laps[["lap_number", "lap_time_s", "s1_s", "s2_s", "s3_s"]].head())
|
|
80
78
|
|
|
@@ -168,15 +166,21 @@ Configuring a key raises your budget and removes the shared one.
|
|
|
168
166
|
| Method | Description | Key required |
|
|
169
167
|
|--------|-------------|-------------|
|
|
170
168
|
| `.results()` | Race classification as DataFrame | No |
|
|
171
|
-
| `.laps(car=
|
|
172
|
-
| `.
|
|
173
|
-
| `.
|
|
174
|
-
| `.
|
|
175
|
-
| `.
|
|
176
|
-
| `.
|
|
177
|
-
| `.
|
|
178
|
-
| `.
|
|
179
|
-
| `.
|
|
169
|
+
| `.laps(car="7")` | Lap-by-lap data for one car | No |
|
|
170
|
+
| `.laps()` | Lap-by-lap data, whole session | **Yes** |
|
|
171
|
+
| `.driver_laps(name, car="7")` | Laps filtered by driver name ⚑ | No |
|
|
172
|
+
| `.driver_laps(name)` | Same, across the whole session | **Yes** |
|
|
173
|
+
| `.stints(car_class=None)` | Stint breakdown per car | No |
|
|
174
|
+
| `.gaps(car_class=None)` | Gap to leader evolution | No |
|
|
175
|
+
| `.pace(car_class=None)` | Average green-flag pace | **Yes** |
|
|
176
|
+
| `.pit_window(car=None)` | Optimal pit window estimate | **Yes** |
|
|
177
|
+
| `.plot_lap_evolution(car)` | Lap time chart | No |
|
|
178
|
+
| `.plot_stint_chart()` | Strategy/stint chart | No |
|
|
179
|
+
| `.plot_gap_to_leader()` | Gap to leader chart | No |
|
|
180
|
+
|
|
181
|
+
The line is what a page shows versus what a consumer extracts: one car's laps
|
|
182
|
+
draw a chart, a whole session's laps are a dataset. A key you *do* send is
|
|
183
|
+
always validated — an invalid one is refused with 401 even on a public method.
|
|
180
184
|
|
|
181
185
|
⚑ **Unique to endurance racing** — multiple drivers share a car. `driver_laps()` has no equivalent in FastF1.
|
|
182
186
|
|
|
@@ -193,5 +197,22 @@ Configuring a key raises your budget and removes the shared one.
|
|
|
193
197
|
|
|
194
198
|
## License
|
|
195
199
|
|
|
196
|
-
|
|
197
|
-
|
|
200
|
+
Three different things, with three different answers. This page used to show
|
|
201
|
+
one word, and one word cannot tell them apart.
|
|
202
|
+
|
|
203
|
+
**The SDK code.** Versions 0.1.0 through 0.3.0 were published here under the
|
|
204
|
+
MIT License. That grant is irrevocable for the copies already distributed: if
|
|
205
|
+
you installed one of those versions, you keep the MIT rights to that code.
|
|
206
|
+
From 0.3.1 onward the SDK, like the rest of the project, is **proprietary —
|
|
207
|
+
all rights reserved**. The full text ships with the package, in `LICENSE`.
|
|
208
|
+
|
|
209
|
+
**The API service.** A key is permission to use the service. It is not a
|
|
210
|
+
licence to the project's source and grants no rights to anything behind the
|
|
211
|
+
endpoint. What the key allows comes with the key.
|
|
212
|
+
|
|
213
|
+
**The racing data.** It is not ours to license. It comes from Al Kamel Systems
|
|
214
|
+
public timing exports, and OpenWEC is not affiliated with Al Kamel, the ACO,
|
|
215
|
+
the FIA or IMSA. Results you compute from the data are yours; the dataset
|
|
216
|
+
itself is someone else's. What is raw, what is normalised, what is computed
|
|
217
|
+
and what is known to be wrong with it is written out at
|
|
218
|
+
**[openwec.com/data-policy](https://openwec.com/data-policy)**.
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
Inspired by [FastF1](https://github.com/theOehrly/Fast-F1), OpenWEC gives you lap-by-lap timing data, stint analytics, and race results from endurance racing as pandas DataFrames — in one line.
|
|
6
6
|
|
|
7
7
|
→ **[openwec.com](https://openwec.com)** — Live dashboard
|
|
8
|
-
→ **[api.openwec.com/docs](https://api.openwec.com/docs)** — API reference
|
|
9
|
-
→ **[github.com/palomacdev/openwec](https://github.com/palomacdev/openwec)** — Source
|
|
8
|
+
→ **[api.openwec.com/docs](https://api.openwec.com/docs)** — API reference
|
|
10
9
|
|
|
11
10
|
---
|
|
12
11
|
|
|
@@ -39,7 +38,7 @@ print(session)
|
|
|
39
38
|
results = session.results()
|
|
40
39
|
print(results[["position", "car_number", "car_class", "team", "drivers"]].head(10))
|
|
41
40
|
|
|
42
|
-
# Lap-by-lap data (key
|
|
41
|
+
# Lap-by-lap data for one car (no key needed)
|
|
43
42
|
laps = session.laps(car="7")
|
|
44
43
|
print(laps[["lap_number", "lap_time_s", "s1_s", "s2_s", "s3_s"]].head())
|
|
45
44
|
|
|
@@ -133,15 +132,21 @@ Configuring a key raises your budget and removes the shared one.
|
|
|
133
132
|
| Method | Description | Key required |
|
|
134
133
|
|--------|-------------|-------------|
|
|
135
134
|
| `.results()` | Race classification as DataFrame | No |
|
|
136
|
-
| `.laps(car=
|
|
137
|
-
| `.
|
|
138
|
-
| `.
|
|
139
|
-
| `.
|
|
140
|
-
| `.
|
|
141
|
-
| `.
|
|
142
|
-
| `.
|
|
143
|
-
| `.
|
|
144
|
-
| `.
|
|
135
|
+
| `.laps(car="7")` | Lap-by-lap data for one car | No |
|
|
136
|
+
| `.laps()` | Lap-by-lap data, whole session | **Yes** |
|
|
137
|
+
| `.driver_laps(name, car="7")` | Laps filtered by driver name ⚑ | No |
|
|
138
|
+
| `.driver_laps(name)` | Same, across the whole session | **Yes** |
|
|
139
|
+
| `.stints(car_class=None)` | Stint breakdown per car | No |
|
|
140
|
+
| `.gaps(car_class=None)` | Gap to leader evolution | No |
|
|
141
|
+
| `.pace(car_class=None)` | Average green-flag pace | **Yes** |
|
|
142
|
+
| `.pit_window(car=None)` | Optimal pit window estimate | **Yes** |
|
|
143
|
+
| `.plot_lap_evolution(car)` | Lap time chart | No |
|
|
144
|
+
| `.plot_stint_chart()` | Strategy/stint chart | No |
|
|
145
|
+
| `.plot_gap_to_leader()` | Gap to leader chart | No |
|
|
146
|
+
|
|
147
|
+
The line is what a page shows versus what a consumer extracts: one car's laps
|
|
148
|
+
draw a chart, a whole session's laps are a dataset. A key you *do* send is
|
|
149
|
+
always validated — an invalid one is refused with 401 even on a public method.
|
|
145
150
|
|
|
146
151
|
⚑ **Unique to endurance racing** — multiple drivers share a car. `driver_laps()` has no equivalent in FastF1.
|
|
147
152
|
|
|
@@ -158,5 +163,22 @@ Configuring a key raises your budget and removes the shared one.
|
|
|
158
163
|
|
|
159
164
|
## License
|
|
160
165
|
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
Three different things, with three different answers. This page used to show
|
|
167
|
+
one word, and one word cannot tell them apart.
|
|
168
|
+
|
|
169
|
+
**The SDK code.** Versions 0.1.0 through 0.3.0 were published here under the
|
|
170
|
+
MIT License. That grant is irrevocable for the copies already distributed: if
|
|
171
|
+
you installed one of those versions, you keep the MIT rights to that code.
|
|
172
|
+
From 0.3.1 onward the SDK, like the rest of the project, is **proprietary —
|
|
173
|
+
all rights reserved**. The full text ships with the package, in `LICENSE`.
|
|
174
|
+
|
|
175
|
+
**The API service.** A key is permission to use the service. It is not a
|
|
176
|
+
licence to the project's source and grants no rights to anything behind the
|
|
177
|
+
endpoint. What the key allows comes with the key.
|
|
178
|
+
|
|
179
|
+
**The racing data.** It is not ours to license. It comes from Al Kamel Systems
|
|
180
|
+
public timing exports, and OpenWEC is not affiliated with Al Kamel, the ACO,
|
|
181
|
+
the FIA or IMSA. Results you compute from the data are yours; the dataset
|
|
182
|
+
itself is someone else's. What is raw, what is normalised, what is computed
|
|
183
|
+
and what is known to be wrong with it is written out at
|
|
184
|
+
**[openwec.com/data-policy](https://openwec.com/data-policy)**.
|
|
@@ -1,56 +1,59 @@
|
|
|
1
|
-
"""
|
|
2
|
-
OpenWEC SDK — Alpha
|
|
3
|
-
|
|
4
|
-
A FastF1-style Python interface for endurance racing data
|
|
5
|
-
(WEC, ELMS, ALMS, Le Mans Cup, IMSA).
|
|
6
|
-
|
|
7
|
-
Usage:
|
|
8
|
-
import openwec
|
|
9
|
-
|
|
10
|
-
# Optional: configure API URL and key
|
|
11
|
-
openwec.configure(base_url="http://localhost:8000/api/v1", api_key="your-key")
|
|
12
|
-
|
|
13
|
-
# Load a session
|
|
14
|
-
session = openwec.Session("WEC", 2024, "Le Mans", "Race")
|
|
15
|
-
|
|
16
|
-
# Results (public, no API key needed)
|
|
17
|
-
results = session.results()
|
|
18
|
-
print(results.head())
|
|
19
|
-
|
|
20
|
-
# Laps
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
pace
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
session.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
""
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
1
|
+
"""
|
|
2
|
+
OpenWEC SDK — Alpha
|
|
3
|
+
|
|
4
|
+
A FastF1-style Python interface for endurance racing data
|
|
5
|
+
(WEC, ELMS, ALMS, Le Mans Cup, IMSA).
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
import openwec
|
|
9
|
+
|
|
10
|
+
# Optional: configure API URL and key
|
|
11
|
+
openwec.configure(base_url="http://localhost:8000/api/v1", api_key="your-key")
|
|
12
|
+
|
|
13
|
+
# Load a session
|
|
14
|
+
session = openwec.Session("WEC", 2024, "Le Mans", "Race")
|
|
15
|
+
|
|
16
|
+
# Results (public, no API key needed)
|
|
17
|
+
results = session.results()
|
|
18
|
+
print(results.head())
|
|
19
|
+
|
|
20
|
+
# Laps of one car — public
|
|
21
|
+
laps_50 = session.laps(car="50")
|
|
22
|
+
|
|
23
|
+
# Laps of the whole session at once — needs a key
|
|
24
|
+
laps = session.laps()
|
|
25
|
+
|
|
26
|
+
# Analytics: stints and gaps are public, pace needs a key
|
|
27
|
+
stints = session.stints()
|
|
28
|
+
gaps = session.gaps()
|
|
29
|
+
pace = session.pace()
|
|
30
|
+
|
|
31
|
+
# Plots (need matplotlib; the data behind these three is public)
|
|
32
|
+
session.plot_lap_evolution(car="50")
|
|
33
|
+
session.plot_stint_chart()
|
|
34
|
+
session.plot_gap_to_leader()
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
from .client import (
|
|
38
|
+
configure,
|
|
39
|
+
OpenWECError,
|
|
40
|
+
OpenWECNotFoundError,
|
|
41
|
+
OpenWECAuthError,
|
|
42
|
+
OpenWECPermissionError,
|
|
43
|
+
OpenWECRateLimitError,
|
|
44
|
+
OpenWECServerError,
|
|
45
|
+
)
|
|
46
|
+
from .session import Session
|
|
47
|
+
|
|
48
|
+
__version__ = "0.3.2"
|
|
49
|
+
|
|
50
|
+
__all__ = [
|
|
51
|
+
"Session",
|
|
52
|
+
"configure",
|
|
53
|
+
"OpenWECError",
|
|
54
|
+
"OpenWECNotFoundError",
|
|
55
|
+
"OpenWECAuthError",
|
|
56
|
+
"OpenWECPermissionError",
|
|
57
|
+
"OpenWECRateLimitError",
|
|
58
|
+
"OpenWECServerError",
|
|
56
59
|
]
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openwec
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Python SDK for endurance racing data — WEC, ELMS, ALMS, Le Mans Cup, IMSA
|
|
5
5
|
Author: Paloma C.
|
|
6
|
-
License-Expression:
|
|
6
|
+
License-Expression: LicenseRef-Proprietary
|
|
7
7
|
Project-URL: Homepage, https://openwec.com
|
|
8
8
|
Project-URL: Documentation, https://api.openwec.com/docs
|
|
9
|
-
Project-URL:
|
|
10
|
-
Project-URL: Bug Tracker, https://github.com/palomacdev/openwec/issues
|
|
9
|
+
Project-URL: Contact, https://openwec.com/data-policy#data-refresh
|
|
11
10
|
Keywords: motorsport,endurance racing,WEC,Le Mans,ELMS,IMSA,timing data,lap times,pandas
|
|
12
11
|
Classifier: Development Status :: 3 - Alpha
|
|
13
12
|
Classifier: Intended Audience :: Developers
|
|
@@ -40,8 +39,7 @@ Dynamic: license-file
|
|
|
40
39
|
Inspired by [FastF1](https://github.com/theOehrly/Fast-F1), OpenWEC gives you lap-by-lap timing data, stint analytics, and race results from endurance racing as pandas DataFrames — in one line.
|
|
41
40
|
|
|
42
41
|
→ **[openwec.com](https://openwec.com)** — Live dashboard
|
|
43
|
-
→ **[api.openwec.com/docs](https://api.openwec.com/docs)** — API reference
|
|
44
|
-
→ **[github.com/palomacdev/openwec](https://github.com/palomacdev/openwec)** — Source
|
|
42
|
+
→ **[api.openwec.com/docs](https://api.openwec.com/docs)** — API reference
|
|
45
43
|
|
|
46
44
|
---
|
|
47
45
|
|
|
@@ -74,7 +72,7 @@ print(session)
|
|
|
74
72
|
results = session.results()
|
|
75
73
|
print(results[["position", "car_number", "car_class", "team", "drivers"]].head(10))
|
|
76
74
|
|
|
77
|
-
# Lap-by-lap data (key
|
|
75
|
+
# Lap-by-lap data for one car (no key needed)
|
|
78
76
|
laps = session.laps(car="7")
|
|
79
77
|
print(laps[["lap_number", "lap_time_s", "s1_s", "s2_s", "s3_s"]].head())
|
|
80
78
|
|
|
@@ -168,15 +166,21 @@ Configuring a key raises your budget and removes the shared one.
|
|
|
168
166
|
| Method | Description | Key required |
|
|
169
167
|
|--------|-------------|-------------|
|
|
170
168
|
| `.results()` | Race classification as DataFrame | No |
|
|
171
|
-
| `.laps(car=
|
|
172
|
-
| `.
|
|
173
|
-
| `.
|
|
174
|
-
| `.
|
|
175
|
-
| `.
|
|
176
|
-
| `.
|
|
177
|
-
| `.
|
|
178
|
-
| `.
|
|
179
|
-
| `.
|
|
169
|
+
| `.laps(car="7")` | Lap-by-lap data for one car | No |
|
|
170
|
+
| `.laps()` | Lap-by-lap data, whole session | **Yes** |
|
|
171
|
+
| `.driver_laps(name, car="7")` | Laps filtered by driver name ⚑ | No |
|
|
172
|
+
| `.driver_laps(name)` | Same, across the whole session | **Yes** |
|
|
173
|
+
| `.stints(car_class=None)` | Stint breakdown per car | No |
|
|
174
|
+
| `.gaps(car_class=None)` | Gap to leader evolution | No |
|
|
175
|
+
| `.pace(car_class=None)` | Average green-flag pace | **Yes** |
|
|
176
|
+
| `.pit_window(car=None)` | Optimal pit window estimate | **Yes** |
|
|
177
|
+
| `.plot_lap_evolution(car)` | Lap time chart | No |
|
|
178
|
+
| `.plot_stint_chart()` | Strategy/stint chart | No |
|
|
179
|
+
| `.plot_gap_to_leader()` | Gap to leader chart | No |
|
|
180
|
+
|
|
181
|
+
The line is what a page shows versus what a consumer extracts: one car's laps
|
|
182
|
+
draw a chart, a whole session's laps are a dataset. A key you *do* send is
|
|
183
|
+
always validated — an invalid one is refused with 401 even on a public method.
|
|
180
184
|
|
|
181
185
|
⚑ **Unique to endurance racing** — multiple drivers share a car. `driver_laps()` has no equivalent in FastF1.
|
|
182
186
|
|
|
@@ -193,5 +197,22 @@ Configuring a key raises your budget and removes the shared one.
|
|
|
193
197
|
|
|
194
198
|
## License
|
|
195
199
|
|
|
196
|
-
|
|
197
|
-
|
|
200
|
+
Three different things, with three different answers. This page used to show
|
|
201
|
+
one word, and one word cannot tell them apart.
|
|
202
|
+
|
|
203
|
+
**The SDK code.** Versions 0.1.0 through 0.3.0 were published here under the
|
|
204
|
+
MIT License. That grant is irrevocable for the copies already distributed: if
|
|
205
|
+
you installed one of those versions, you keep the MIT rights to that code.
|
|
206
|
+
From 0.3.1 onward the SDK, like the rest of the project, is **proprietary —
|
|
207
|
+
all rights reserved**. The full text ships with the package, in `LICENSE`.
|
|
208
|
+
|
|
209
|
+
**The API service.** A key is permission to use the service. It is not a
|
|
210
|
+
licence to the project's source and grants no rights to anything behind the
|
|
211
|
+
endpoint. What the key allows comes with the key.
|
|
212
|
+
|
|
213
|
+
**The racing data.** It is not ours to license. It comes from Al Kamel Systems
|
|
214
|
+
public timing exports, and OpenWEC is not affiliated with Al Kamel, the ACO,
|
|
215
|
+
the FIA or IMSA. Results you compute from the data are yours; the dataset
|
|
216
|
+
itself is someone else's. What is raw, what is normalised, what is computed
|
|
217
|
+
and what is known to be wrong with it is written out at
|
|
218
|
+
**[openwec.com/data-policy](https://openwec.com/data-policy)**.
|
|
@@ -1,58 +1,57 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools>=68", "wheel"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "openwec"
|
|
7
|
-
version = "0.3.
|
|
8
|
-
description = "Python SDK for endurance racing data — WEC, ELMS, ALMS, Le Mans Cup, IMSA"
|
|
9
|
-
readme = "README.md"
|
|
10
|
-
license = "
|
|
11
|
-
license-files = ["LICENSE"]
|
|
12
|
-
requires-python = ">=3.10"
|
|
13
|
-
|
|
14
|
-
authors = [
|
|
15
|
-
{ name = "Paloma C."}
|
|
16
|
-
]
|
|
17
|
-
|
|
18
|
-
keywords = [
|
|
19
|
-
"motorsport", "endurance racing", "WEC", "Le Mans",
|
|
20
|
-
"ELMS", "IMSA", "timing data", "lap times", "pandas"
|
|
21
|
-
]
|
|
22
|
-
|
|
23
|
-
classifiers = [
|
|
24
|
-
"Development Status :: 3 - Alpha",
|
|
25
|
-
"Intended Audience :: Developers",
|
|
26
|
-
"Intended Audience :: Science/Research",
|
|
27
|
-
"Programming Language :: Python :: 3",
|
|
28
|
-
"Programming Language :: Python :: 3.10",
|
|
29
|
-
"Programming Language :: Python :: 3.11",
|
|
30
|
-
"Programming Language :: Python :: 3.12",
|
|
31
|
-
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
32
|
-
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
33
|
-
]
|
|
34
|
-
|
|
35
|
-
dependencies = [
|
|
36
|
-
"httpx>=0.27",
|
|
37
|
-
"pandas>=2.0",
|
|
38
|
-
]
|
|
39
|
-
|
|
40
|
-
[project.optional-dependencies]
|
|
41
|
-
plotting = ["matplotlib>=3.7"]
|
|
42
|
-
dev = [
|
|
43
|
-
"matplotlib>=3.7",
|
|
44
|
-
"jupyter>=1.0",
|
|
45
|
-
"ipykernel>=6.0",
|
|
46
|
-
"twine>=5.0",
|
|
47
|
-
"build>=1.0",
|
|
48
|
-
]
|
|
49
|
-
|
|
50
|
-
[project.urls]
|
|
51
|
-
Homepage = "https://openwec.com"
|
|
52
|
-
Documentation = "https://api.openwec.com/docs"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
[
|
|
57
|
-
where = ["."]
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "openwec"
|
|
7
|
+
version = "0.3.2"
|
|
8
|
+
description = "Python SDK for endurance racing data — WEC, ELMS, ALMS, Le Mans Cup, IMSA"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "LicenseRef-Proprietary"
|
|
11
|
+
license-files = ["LICENSE"]
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
|
+
|
|
14
|
+
authors = [
|
|
15
|
+
{ name = "Paloma C."}
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
keywords = [
|
|
19
|
+
"motorsport", "endurance racing", "WEC", "Le Mans",
|
|
20
|
+
"ELMS", "IMSA", "timing data", "lap times", "pandas"
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
classifiers = [
|
|
24
|
+
"Development Status :: 3 - Alpha",
|
|
25
|
+
"Intended Audience :: Developers",
|
|
26
|
+
"Intended Audience :: Science/Research",
|
|
27
|
+
"Programming Language :: Python :: 3",
|
|
28
|
+
"Programming Language :: Python :: 3.10",
|
|
29
|
+
"Programming Language :: Python :: 3.11",
|
|
30
|
+
"Programming Language :: Python :: 3.12",
|
|
31
|
+
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
32
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
dependencies = [
|
|
36
|
+
"httpx>=0.27",
|
|
37
|
+
"pandas>=2.0",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[project.optional-dependencies]
|
|
41
|
+
plotting = ["matplotlib>=3.7"]
|
|
42
|
+
dev = [
|
|
43
|
+
"matplotlib>=3.7",
|
|
44
|
+
"jupyter>=1.0",
|
|
45
|
+
"ipykernel>=6.0",
|
|
46
|
+
"twine>=5.0",
|
|
47
|
+
"build>=1.0",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[project.urls]
|
|
51
|
+
Homepage = "https://openwec.com"
|
|
52
|
+
Documentation = "https://api.openwec.com/docs"
|
|
53
|
+
Contact = "https://openwec.com/data-policy#data-refresh"
|
|
54
|
+
|
|
55
|
+
[tool.setuptools.packages.find]
|
|
56
|
+
where = ["."]
|
|
58
57
|
include = ["openwec*"]
|
openwec-0.3.0/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Paloma Cordeiro
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|