Python library for parsing BattleScribe/NewRecruit roster JSON. Extracted from Nachmund Tracker's processJSON, ported JS→Python. - parse_roster(json_string) / parse_roster_file(path) → RosterSummary - Extracts: unit name, pts, CP, model count, weapon breakdown per model variant - Handles: variable-model-count units, nested costs, compound upgrades - Unicode apostrophe-safe unit lookup (find_unit) - to_dict() for JSON serialization - 8/8 tests passing on real roster data (27 units, 2815pts)
7 lines
56 B
Plaintext
7 lines
56 B
Plaintext
__pycache__/
|
|
*.pyc
|
|
*.egg-info/
|
|
dist/
|
|
build/
|
|
.eggs/
|
|
*.egg |