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
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.3.5.tar.gz
(16.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
py_bsor-1.3.5-py3-none-any.whl
(17.5 kB
view details)
File details
Details for the file py_bsor-1.3.5.tar.gz.
File metadata
- Download URL: py_bsor-1.3.5.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ce21ed38531966fd558a2c6265392eafe026b8b160b5c9393d1b3028d26cdc
|
|
| MD5 |
806a1defd12b1974e74cb5d2f635aff7
|
|
| BLAKE2b-256 |
6bf079f21e3ea1883e3ff1df110ff3f55d5386ba78ccfe002d67979b29051834
|
File details
Details for the file py_bsor-1.3.5-py3-none-any.whl.
File metadata
- Download URL: py_bsor-1.3.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e44135084b7c442c58d85390a5bcec997e54326f83f62bdfea93e12a4f7330a1
|
|
| MD5 |
3b382485eff3082657ab1e6421e45c4f
|
|
| BLAKE2b-256 |
a8652ee77e437fe3bd0576473ac07b028ff1bb2361df85d02995749f0b1dde2b
|