pyuepak
pyuepak is a Python library for working with Unreal Engine .pak files.
Features
- Can read and write
.pakversions 1–12 - Can read encrypted paks
- Can read Zlib, Gzip, Oodle compressed paks
Installation
pip install pyuepak
Or install directly from the repository:
git clone https://github.com/stas96111/pyuepak.git
cd pyuepak
pip install -r requirements.txt
pip install .
CLT
pyuepak [OPTIONS] COMMAND [ARGS]...
Global option:
--aes <key> — AES key for encrypted .pak files.
Commands
| Command | Description |
|---|---|
info |
Show info about a .pak file |
list |
List all files in the archive |
extract |
Extract one file |
unpack |
Unpack all files |
pack |
Pack a folder into .pak |
read |
Read a file and print to stdout |
Examples
pyuepak info -p game.pak
pyuepak unpack -p game.pak -o out/
pyuepak extract -p game.pak -f "Game/Content/file.txt"
pyuepak pack -i folder -o new.pak
Encrypted file:
pyuepak --aes 1234567890ABCDEF info -p encrypted.pak
Usage
from pyuepak import PakFile, PakVersion
pak = PakFile()
pak.read(r"path/to/pak.pak")
print(pak.list_files()) # ["/Game/asset.uasset", ...]
print(pak.mout_point) # "../../../" (default)
print(pak.key) # b'0000000...' AES key (default)
print(pak.path_hash_seed) # 0 (default)
print(pak.count) # prints file count
data = pak.read_file(r"/Game/asset.uasset") # return binary data
pak.remove_file(r"/Game/asset.uasset")
new_pak = PakFile()
new_pak.add_file("/Game/asset.uasset", data)
new_pak.set_version(PakVersion.V11)
new_pak.set_mount_point("../../..")
new_pak.write(r"path/to/pak.pak")
Contributing
Contributions are welcome! Please open issues or submit pull requests.
Credits
This project is based on information and ideas from two great open-source tools:
License
This project is licensed under the MIT License.
Metadata
Release files for pyuepak 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyuepak-0.2.8.tar.gz | 18.8 kB | Without provenance | Details for pyuepak-0.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyuepak-0.2.8-py3-none-any.whl | Python 3 | none | any | Details for pyuepak-0.2.8-py3-none-any.whl |
Total release size: 37.7 kB
Release files / pyuepak-0.2.8.tar.gz
| Download URL | pyuepak-0.2.8.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03ec0ff5a30599546a159b91e589a8e2d6ba6e6424ca141abc04e4756190c15d
|
|
BLAKE2b-256 checksum How to use checksums |
8a47866f1effd4edf9c2f4e1cef20dc44884088174c9e35d8fc881f5a0781a74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|
Release files / pyuepak-0.2.8-py3-none-any.whl
| Download URL | pyuepak-0.2.8-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22628162e755ef2e42a537bbb35a51251a75494af95edaeb4d6baf76007be26c
|
|
BLAKE2b-256 checksum How to use checksums |
f8ec3efc16113edbcca1c2f50759c17d8be04a2a923d249ce68ba006c1ed1ff6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.6
|
Security for pyuepak 0.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.