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.3.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.3-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_bsor-1.3.3.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.3.tar.gz
Algorithm Hash digest
SHA256 0884681ac9ec7f1041a12ebaab383654fd549b0377251dc7f41c8807ce8cda4d
MD5 8902369540755a46ae4aab81b517f8f1
BLAKE2b-256 1f98f8fbf2480c359340fb94ec8977446c704d2e9d30980ab7dfcaece1cdca7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_bsor-1.3.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c095bc084f75d841764afb5b313959c17cc82020d556948c680a8ffd9ff3f1f
MD5 a1231e00e4191a2d999b9845c7daac6b
BLAKE2b-256 655040fe686b2a1715255c6e79fd0a591ed8f6f094a16406a038eaa7665f94fe

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