BS Open Replay Parser, with added support for controlleroffsets and userdata
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
Release history Release notifications | RSS feed
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.2.3.tar.gz
(14.2 kB
view hashes)
Built Distribution
py_bsor-1.2.3-py3-none-any.whl
(15.7 kB
view hashes)