Code: Select all
pip install d2animdata
It is similar to Paul Siramy's animdata_edit, but offers some additional features:
- d2animdata will perform strict checks on AnimData.D2 and catch possible errors early.
- Can also decompile to JSON and back. JSON is more suited for a text editor, and produces better Git diff logs.
- Sorting entries is optional (via the --sort option)
- It is also a library, so you can import d2animdata in your own Python script to programmatically edit AnimData.D2.
Note: I'm thinking of adding support for more human-friendly formats (e.g. JSON5, YAML, TOML). Not sure if it's worth it.
Feedback is welcome!