RunParser is a Python library for parsing and reading save data from Risk of Rain 2.
>>> from runparser import RunParser
>>> rp = RunParser('tests/files/runs/', 'tests/files/profiles')
>>> rp.parse_runs()
>>> rp.runs[0].guid
'1e610e1c-08f9-4321-af86-31fa772d9cd6'
>>> rp.runs[0].players[0].name
'Azure'At the moment, the module is not uploaded to pypi, so importing as a submodule is your best bet.
$ git submodule add https://github.com/Azure-Agst/ror2_run_parser/# activate virtual env
python3 -m venv venv
./venv/bin/activate
# install dependencies
pip3 install -r requirements.txt
# run unit tests
python3 -m unittests -v testsIt's welcome! Just follow the rules in CONTRIBUTING.md and we'll be good to go!