-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the CUE4Parse-Python wiki!
- Complete replacement for CUE4Parse.CLI in Python, fully scriptable, cross-platform and doesn't need building.
- Piggybacks off the native DLLs of the best flagship product (CUE4Parse), doesn't implement low-level stuff (yet).
Use pip install cue4parse to install. Run cue4parse for CLI. First run downloads DLLs to %LOCALAPPDATA%/cue4parse/libs.
- PyPi project page: https://pypi.org/project/cue4parse/
- Example usage: https://github.com/joric/CUE4Parse-Python/blob/main/src/cue4parse/example.py
- CLI code (bigger example): https://github.com/joric/CUE4Parse-Python/blob/main/src/cue4parse/cli.py
I didn't like the idea of installing libraries on pip install because it requires packing libraries with every wheel (there is no post-install hook), that's about 20-50 megs per each version. So it downloads and installs libraries on first run (or skips that if libraries are already there).
You can install it locally with pip install -e . --force in the repository root.
If you fork it and make your own PyPi project. It uploads automatically on toml version change, using trusted publishing in the project settings.
Use from cue4parse import * for scripting, you will have all the headers and classes used in CLI.
CLI supposed to be extendable with import cue4parse.cli as cli, working on it.