Skip to main content

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 run
  • LivesplitData.num_completed_attempts: the number of attempts that were also completed runs
  • LivesplitData.percent_runs_completed: the percentage of all your attempts that were completed (this is just LivesplitData.num_completed_attempts / LivesplitData.num_attempts * 100)
  • LivesplitData.attempt_info_df: A pandas.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 started
    • isStartedSynced: ?????
    • ended: timestamp of when the attempt ended
    • isEndedSynced: ?????
    • RunCompleted: If True, the attempt was a completed run. If False, the attempt was not a completed run
    • RealTime: 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: A pandas.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 Best
    • PersonalBestSplitTime: the split time for your Personal Best
    • BestSegment: the fastest time you have completed that split
    • BestSegmentSplitTime: the split times for your best segments if your best segments were a completed run
    • Average: the average length of a given split
    • AverageSegmentSplitTime: the split times for your average segments if your average segments were a completed run
    • Median: the median length of a given split
    • MedianSegmentSplitTime: the split times for your median segments if your median segments were a completed run
    • NumRunsPassed: The number of attempts that completed that split
    • PercentRunsPassed: 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)

Uploaded Source

Built Distribution

livesplit_parser-0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for livesplit_parser-0.1.tar.gz
Algorithm Hash digest
SHA256 e08cf74e8c58b9a53a4e9d9f9982fa43e042b02acad103cc1b272fbf0ab3e8b5
MD5 95695ccf8b7009c820f8dffefdc8e77e
BLAKE2b-256 1b5bcc2be089916128bfc683ff664e6f007db90aa80a69c27e11dde2d606ccc2

See more details on using hashes here.

File details

Details for the file livesplit_parser-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for livesplit_parser-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e89e940413fa21b867b3018a1d902c35fccb560fd88182e608704fa8907ab590
MD5 ca65549590b38863cb8648446b3859de
BLAKE2b-256 2d623af333d21a47736c87f651d9607234c1c2491b15b7e05bd0424a164e76b8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page