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.6.tar.gz (16.0 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.6-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_bsor-1.3.6.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

Hashes for py_bsor-1.3.6.tar.gz
Algorithm Hash digest
SHA256 13b02aae388131bc0e83c828f4811f6418fb99382696e889dee8a01b31b34a4e
MD5 a517a5e6311e32ebc402529fb1627988
BLAKE2b-256 65053c939a8c6bb7d1a3c7782d68bcc9ea0550fdafad726e138fe0612c20dfad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_bsor-1.3.6-py3-none-any.whl
  • Upload date:
  • Size: 17.6 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bd04b82b50d23f0a62bb0695f0744ed97a9f0eaaa311e3aa48a693aff4119646
MD5 1d54c4588a54c7001b3329fa3ca7f83d
BLAKE2b-256 4ac0c9ad340769fdad84e3cf9cfc01c408fe20bfdb8a1afbe91727201d26497b

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