Skip to main content

BS Open Replay Parser, with added support for controlleroffsets and userdata/treecksaber

Project description

BS Open Replay Python parser

Beat Saber Open Replay format parser written in Python

Usage

pip install py-bsor

example - read bsor file and print some info:

from bsor.Bsor import make_bsor
from bsor.Scoring import calc_stats
import os
import io

if __name__ == '__main__':
    filename = 'D:/something/easy.bsor'
    print('File name :    ', os.path.basename(filename))
    with open(filename, 'rb') as f:
        m = make_bsor(f)
        print(f'BSOR Version: {m.file_version}')
        print(f'BSOR notes: {len(m.notes)}')
        print(m.info)
        stats = calc_stats(m)
        print(stats)
        
        
        #change player and write to file
        m.info.playerId = '76561198026425351'
        m.info.playerName = 'Schippi'
        with open('D:/_TMP/easy.testx', 'wb') as fo:
            m.write(fo)

build:

git tag x 
git push origin --tags
py build
py -m twine upload --repository pypi .\dist\*x*

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

py_bsor-1.3.4.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_bsor-1.3.4-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file py_bsor-1.3.4.tar.gz.

File metadata

  • Download URL: py_bsor-1.3.4.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.1

File hashes

Hashes for py_bsor-1.3.4.tar.gz
Algorithm Hash digest
SHA256 44fc19de63b8bf095c0796bb5561aa7c8d63dd31d2e279ef81c79ff83516985f
MD5 c5485f02af546a08cab459658565c3da
BLAKE2b-256 4c798f4afb06be1a4f7ec3c6e9a735e0c244a21ccfbb084dba3fa49f5245ff1d

See more details on using hashes here.

File details

Details for the file py_bsor-1.3.4-py3-none-any.whl.

File metadata

  • Download URL: py_bsor-1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.1

File hashes

Hashes for py_bsor-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ffe5c706623b425a799a259fba250e860c80eda8c93f085030d9741b20e6df39
MD5 ae5a9d3cd06b92522798ca0070fee659
BLAKE2b-256 01f14dbbf053a7482e9e2d56e45b790d1a2fcd6d7301f39bb3ba6b11c8c92b6d

See more details on using hashes here.

Supported by

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