An open API service indexing awesome lists of open source software.

https://github.com/rajesh-rahul/wot_datfile_parser_py

World of Tanks dat file parser binding for Python
https://github.com/rajesh-rahul/wot_datfile_parser_py

parser python rust world-of-tanks

Last synced: 2 months ago
JSON representation

World of Tanks dat file parser binding for Python

Awesome Lists containing this project

README

          

# World of Tanks Datfile Parser (Python)
A parser for `.dat` battle result files generated by the game World of Tanks. `.dat` files are generated whenever a battle's results are viewed in-game. For Windows, these files are found in a location like:
```
C:\Users\\AppData\Roaming\Wargaming.net\WorldOfTanks\battle_results
```
This project simply provides python bindings for the Rust library: [`wot_datfile_parser`](https://github.com/dacite/wot-battle-results-parser/tree/main/datfile_parser)

Install with:
```
pip install wot_datfile_parser_py
```

## Example:
```python
from wot_datfile_parser_py import DatfileParser

# You can use this same parser for any number of datfiles
parser = DatfileParser()

with open("9252658313363554.dat", "rb") as file:
battle = parser.parse(file)
print(battle)
```

## Supported WoT Versions
```
1.20.0
```