| Name | py-bsor JSON |
| Version |
1.2.3
JSON |
| download |
| home_page | None |
| Summary | BS Open Replay Parser, with added support for controlleroffsets and userdata |
| upload_time | 2024-08-19 09:48:23 |
| maintainer | None |
| docs_url | None |
| author | None |
| requires_python | >=3.7 |
| license | MIT License Copyright (c) 2022 Carsten Schipmann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| keywords |
|
| VCS |
 |
| bugtrack_url |
|
| requirements |
No requirements were recorded.
|
| Travis-CI |
No Travis.
|
| coveralls test coverage |
No coveralls.
|
# BS Open Replay Python parser
[Beat Saber Open Replay format](https://github.com/BeatLeader/BS-Open-Replay) parser written in Python
## Usage
```sh
pip install py-bsor
```
example - read bsor file and print some info:
```python
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:
```sh
git tag x
git push origin --tags
py build
py -m twine upload --repository pypi .\dist\*x*
```
Raw data
{
"_id": null,
"home_page": null,
"name": "py-bsor",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Carsten Schipmann <theschippi+gh@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/de/c2/21ecebf2fbb6f23fc5d4710ba1d6c0d8962485c4fa9fed4d74823cdd9b46/py_bsor-1.2.3.tar.gz",
"platform": null,
"description": "# BS Open Replay Python parser\r\n\r\n[Beat Saber Open Replay format](https://github.com/BeatLeader/BS-Open-Replay) parser written in Python\r\n\r\n## Usage\r\n```sh\r\npip install py-bsor\r\n```\r\n\r\nexample - read bsor file and print some info:\r\n```python\r\nfrom bsor.Bsor import make_bsor\r\nfrom bsor.Scoring import calc_stats\r\nimport os\r\nimport io\r\n\r\nif __name__ == '__main__':\r\n filename = 'D:/something/easy.bsor'\r\n print('File name : ', os.path.basename(filename))\r\n with open(filename, 'rb') as f:\r\n m = make_bsor(f)\r\n print(f'BSOR Version: {m.file_version}')\r\n print(f'BSOR notes: {len(m.notes)}')\r\n print(m.info)\r\n stats = calc_stats(m)\r\n print(stats)\r\n \r\n \r\n #change player and write to file\r\n m.info.playerId = '76561198026425351'\r\n m.info.playerName = 'Schippi'\r\n with open('D:/_TMP/easy.testx', 'wb') as fo:\r\n m.write(fo)\r\n\r\n```\r\n\r\nbuild:\r\n```sh\r\ngit tag x \r\ngit push origin --tags\r\npy build\r\npy -m twine upload --repository pypi .\\dist\\*x*\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2022 Carsten Schipmann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "BS Open Replay Parser, with added support for controlleroffsets and userdata",
"version": "1.2.3",
"project_urls": {
"Bug Tracker": "https://github.com/Schippi/py-bsor/issues",
"Homepage": "https://github.com/Schippi/py-bsor"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "addc2e4d4dc3a8f716c39845afbf78f8756aadab1a3a43495621c48cfaa6f8a8",
"md5": "b704da7ac615efb146f1fe3881658702",
"sha256": "f022f07f1d3d49139715d4559fed437d5e8e814e6b53718e9113a9c0b06e17f7"
},
"downloads": -1,
"filename": "py_bsor-1.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b704da7ac615efb146f1fe3881658702",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 15734,
"upload_time": "2024-08-19T09:48:22",
"upload_time_iso_8601": "2024-08-19T09:48:22.210941Z",
"url": "https://files.pythonhosted.org/packages/ad/dc/2e4d4dc3a8f716c39845afbf78f8756aadab1a3a43495621c48cfaa6f8a8/py_bsor-1.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dec221ecebf2fbb6f23fc5d4710ba1d6c0d8962485c4fa9fed4d74823cdd9b46",
"md5": "3de54f10aa656f38ba05e9a501e6f734",
"sha256": "44f4e390508c7f0bc5d7793e3cff5e2385db0453b808b5b5d8c7a75671ff998b"
},
"downloads": -1,
"filename": "py_bsor-1.2.3.tar.gz",
"has_sig": false,
"md5_digest": "3de54f10aa656f38ba05e9a501e6f734",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 14194,
"upload_time": "2024-08-19T09:48:23",
"upload_time_iso_8601": "2024-08-19T09:48:23.157723Z",
"url": "https://files.pythonhosted.org/packages/de/c2/21ecebf2fbb6f23fc5d4710ba1d6c0d8962485c4fa9fed4d74823cdd9b46/py_bsor-1.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-19 09:48:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Schippi",
"github_project": "py-bsor",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "py-bsor"
}