-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the CUE4Parse-Python wiki!
- A functional and complete replacement for CUE4Parse.CLI in Python, fully scriptable and doesn't need building.
- It doesn't implement anything, it piggybacks off the native DLLs of the best flagship product (CUE4Parse).
Use pip install cue4parse to install. Run cue4parse for CLI. Delete %LOCALAPPDATA%/cue4parse/libs to update libraries.
- 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, you just have to add 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.