Wacca DataTable files loading + dumping
Project description
Wacky
Wacca DataTable files loading + dumping lib
Specifically geared towards files :
- created by / for UE 4.19
- split in
.uasset
+.uexp
pairs - only containing DataTable exports
Installing
pip install wacky
Command Line Usage
Unpacking
$ wacky unpack [OPTIONS] UASSET UEXP
This converts the useful data inside UASSET
and UEXP
to a yaml (or json) file you can edit and then use to repack
Options:
--json
: Output json instead of yaml-o FILENAME
,--output FILENAME
: Output to a specific file (instead of to stdout)--help
: Show a help message and exit.
Modifying
Just use a text editor to change the file you've created with the previous command
Repacking
$ wacky repack [OPTIONS] SRC_UASSET SRC_UEXP NEW_DATA DST_UASSET DST_UEXP
This creates new modified .uasset
and .uexp
files by using SRC_UASSET
and SRC_UEXP
as templates and applying the changes specified by NEW_DATA
Options:
--help
: Show a help message and exit.
Python API
>>> from wacky import load, dump
>>> package = load(uasset=open(..., "rb"), uexp=open(..., "rb"))
>>> ... # Do stuff with `package`
>>> dump(package, uasset=open(..., "wb"), uexp=open(..., "wb"))
Folder Contents
File / Folder | Description |
---|---|
src/ | Sources |
tests/ | unit tests, with example .uasset and .uexp files |
utils/ | Things worth keeping around |
.flake8 | Flake8 config |
.gitignore | list of file patterns git ignores |
CHANGELOG.md | Changelog |
poetry.lock | Precise info about every dependency or sub-dependency, generated by poetry, don't modify yourself |
pyproject.toml | Projet description file, mostly managed by poetry |
README.md | The file you are reading right now |
UE4.ksy | Definition of the .uasset + .uexp file structure using Kaitai Struct, for documentation and preservation purposes |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wacky-1.0.2.tar.gz
(21.5 kB
view hashes)
Built Distribution
wacky-1.0.2-py3-none-any.whl
(24.1 kB
view hashes)