easyf1
An open-sourced Formula 1 data processing library.
USAGE
Import the library
from easyf1 as easyf1
Get season object and its meetings + sessions
season = easyf1.get_season(
season = 2024
)
print(season) # Shows the dataframe table of sessions and their informations
print(season.meetings) # Get meeting objects
Get meeting object and its sessions
meeting = easyf1.get_meeting(
season = 2024,
location = "Monza"
)
print(meeting) # Shows the dataframe table of sessions and their informations
print(meeting.sessions) # Get session objects
Get session object and load data
session = easyf1.get_session(
season=2024,
location="Monza",
session="Race"
)
session.get_topic_names() # load /Info.json
print(session.topic_names_info)
{
"SessionInfo": {
"KeyFramePath": "SessionInfo.json",
"StreamPath": "SessionInfo.jsonStream"
},
"ArchiveStatus": {
"KeyFramePath": "ArchiveStatus.json",
"StreamPath": "ArchiveStatus.jsonStream"
},
"Position.z": {
"KeyFramePath": "Position.z.json",
"StreamPath": "Position.z.jsonStream"
},
"CarData.z": {
.
.
.
Load specific data by name of data
data = session.get_data(
dataName = "Position.z",
dataType = "StreamPath",
stream = True
)
print(type(data))
# <class 'easyf1.data_processing.data_models.BasicResult'>
print(data)
# SessionKey timestamp Utc DriverNo Status X Y Z
# 0 9590 00:00:30.209 2024-09-01T12:08:13.7879709Z 1 OnTrack 0 0 0
# 1 9590 00:00:30.209 2024-09-01T12:08:13.7879709Z 3 OnTrack 0 0 0
# 2 9590 00:00:30.209 2024-09-01T12:08:13.7879709Z 4 OnTrack 0 0 0
# 3 9590 00:00:30.209 2024-09-01T12:08:13.7879709Z 10 OnTrack 0 0 0
print(data.value)
# [
# {'SessionKey': 9590, 'timestamp': '00:00:30.209', 'Utc': '2024-09-01T12:08:13.7879709Z', 'DriverNo': '1', 'Status': 'OnTrack', 'X': 0, 'Y': 0, 'Z': 0},
# {'SessionKey': 9590, 'timestamp': '00:00:30.209', 'Utc': '2024-09-01T12:08:13.7879709Z', 'DriverNo': '3', 'Status': 'OnTrack', 'X': 0, 'Y': 0, 'Z': 0},
# {'SessionKey': 9590, 'timestamp': '00:00:30.209', 'Utc': '2024-09-01T12:08:13.7879709Z', 'DriverNo': '4', 'Status': 'OnTrack', 'X': 0, 'Y': 0, 'Z': 0},
# .
# .
# .
# ]
Metadata
Release files for onef1 0.0.1
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 |
|---|---|---|---|---|
| onef1-0.0.1.tar.gz | 20.7 kB | Without provenance | Details for onef1-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onef1-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for onef1-0.0.1-py3-none-any.whl |
Total release size: 49.2 kB
Release files / onef1-0.0.1.tar.gz
| Download URL | onef1-0.0.1.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
895e09bdddf26c84f4328970a524213321f245c38fa2945a8a0dae4e83d6fa7e
|
|
BLAKE2b-256 checksum How to use checksums |
50d15b37c464ece2e959cbaea6aa80be9c48f1c82938e0dadeccdd55261b407d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|
Release files / onef1-0.0.1-py3-none-any.whl
| Download URL | onef1-0.0.1-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
924417f629c869bb2d2597f0e956758b7304f1d338f11ed90a825c87093abd7f
|
|
BLAKE2b-256 checksum How to use checksums |
79c745a9d25bbd711b589efaf1861431c0ec30bdfbcef718c3d8716f9f0be50f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.8
|
Security for onef1 0.0.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.