Parse LiveSplit data
Project description
Livesplit-Parser
A Python Package to Parse Your Data Regarding Your Speedruns
This Pyton package parses LiveSplit files and parses data within LiveSplit files.
As of the 0.1 release, the only module included is the LivesplitData
class, which neatly bundles all data inside your LiveSplit file into one object. The attributes are as follows:
LivesplitData.num_attempts
: the number of attempts for your runLivesplitData.num_completed_attempts
: the number of attempts that were also completed runsLivesplitData.percent_runs_completed
: the percentage of all your attempts that were completed (this is justLivesplitData.num_completed_attempts / LivesplitData.num_attempts * 100
)LivesplitData.attempt_info_df
: Apandas.DataFrame
object containing information about every attempt. Each row is an attempt indexed by an ID. The columns of the dataframe are as follows:started
: timestamp of when the attempt startedisStartedSynced
: ?????ended
: timestamp of when the attempt endedisEndedSynced
: ?????RunCompleted
: IfTrue
, the attempt was a completed run. IfFalse
, the attempt was not a completed runRealTime
: If not a completed run, shows the time the attempt lasted for. If a completed run, shows the final time of the run.- Every column afterwards is the name of a split and the length of that segment for that attempt
LiveSplitData.split_info_df
: Apandas.DataFrame
object containing general information about every segment in your run. Each row is an individual split in your run. The columns of the dataframe are as follows:PersonalBest
: the segment time for your Personal BestPersonalBestSplitTime
: the split time for your Personal BestBestSegment
: the fastest time you have completed that splitBestSegmentSplitTime
: the split times for your best segments if your best segments were a completed runAverage
: the average length of a given splitAverageSegmentSplitTime
: the split times for your average segments if your average segments were a completed runMedian
: the median length of a given splitMedianSegmentSplitTime
: the split times for your median segments if your median segments were a completed runNumRunsPassed
: The number of attempts that completed that splitPercentRunsPassed
: The percentage of attempts that completed that split
Example Usage
from livesplit_parser import LivesplitData
lss_path = '' # put the path to your .lss file here
my_run = LivesplitData(lss_path)
print('NUMBER OF ATTEMPTS:', my_run.num_attempts)
print('NUMBER OF COMPLETED ATTEMPTS:', my_run.num_completed_attempts)
print('PERCENTAGE OF RUNS COMPLETED:', my_run.percent_runs_completed)
print('YOUR ATTEMPT DATA\n:', my_run.attempt_info_df)
print('YOUR SPLIT DATA:\n', my_run.split_info_df)
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
livesplit_parser-0.1.tar.gz
(4.9 kB
view details)
Built Distribution
File details
Details for the file livesplit_parser-0.1.tar.gz
.
File metadata
- Download URL: livesplit_parser-0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e08cf74e8c58b9a53a4e9d9f9982fa43e042b02acad103cc1b272fbf0ab3e8b5 |
|
MD5 | 95695ccf8b7009c820f8dffefdc8e77e |
|
BLAKE2b-256 | 1b5bcc2be089916128bfc683ff664e6f007db90aa80a69c27e11dde2d606ccc2 |
File details
Details for the file livesplit_parser-0.1-py3-none-any.whl
.
File metadata
- Download URL: livesplit_parser-0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e89e940413fa21b867b3018a1d902c35fccb560fd88182e608704fa8907ab590 |
|
MD5 | ca65549590b38863cb8648446b3859de |
|
BLAKE2b-256 | 2d623af333d21a47736c87f651d9607234c1c2491b15b7e05bd0424a164e76b8 |