Registry / data / aoe2rec-py

aoe2rec-py

JSON →
library0.1.21pypypi✓ verified 80d ago

Python bindings for aoe2rec, a Rust library for parsing Age of Empires 2 recorded game files. Currently at version 0.1.21, requires Python >=3.9, and is released alongside the core aoe2rec crate. Development is active via GitHub.

pip install aoe2rec-py
INSTALL
IMPORT
SIG · AOE2REC-PY
A
aoe2rec-py
datapythonv0.1.21
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RecSummary
from aoe2rec_py import RecSummary
from aoe2rec_py import parse_recording
summary
from aoe2rec_py import summary
aoe2rec_py
import aoe2rec_py

Parses a recording file and prints map name and player count. Works directly with saved .aoe2record files.

from aoe2rec_py import parse_recording # Replace with a path to a valid .aoe2record file recording = parse_recording("path/to/recording.aoe2record") print(f"Map: {recording.map_name}") print(f"Players: {len(recording.players)}")
Debug
Known issues
gotchaThe import path uses underscores: 'aoe2rec_py', not hyphens. Common mistake: 'from aoe2rec-py import ...' fails.
fix
Use `from aoe2rec_py import ...` (underscores).
affects: all
gotchaThe library may not parse all versions of recorded games, especially very old or modded ones. The underlying Rust crate is under active development.
fix
Check the aoe2rec core crate for version support and open issues if a recording fails.
affects: <=0.1.21
deprecatedThe function `parse_recording` may be renamed to `load_recording` in future versions; check latest docs.
fix
Stay updated; the import path and function name are likely to stabilize.
affects: 0.1.x
Upgrade
Version history
0.1.21latest on PyPI · released Mar 8, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
50 hits · last 30 days
node
42
OpenAI (training)
1
Resources