tpk_ar
A Python port of AssetRipper/Tpk, primarily for use in UnityPy.
This is maintained as a separate project to ensure forward compatibility for older UnityPy versions against potential breaking changes in the original code.
Rather than acting as an exact mirror of the upstream project, this port focuses solely on providing a Tpk format parser with a stable, backward-compatible API.
Options
The brotli and lz4 dependencies are optional. To handle compressed Tpk files, install the package with the required extras:
pip install "tpk_ar[brotli]"
pip install "tpk_ar[lz4]"
pip install "tpk_ar[full]" # Installs both
Development
TODO
- Parser
- Dumper (for saving extracted type tree information of games)
- Native Extension (C++, for performance)
Benchmarking
To measure the cost of loading a TPK file and inspect the same code path in snakeviz, install the dev extras:
uv sync --extra dev
Run the timing benchmark against the bundled uncompressed sample:
uv run python benchmarks/bench_load.py
Generate a profile for the same load path, then open it in snakeviz:
uv run python benchmarks/profile_load.py
uv run snakeviz profiles/uncompressed.prof
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tpk_ar-0.2.3.tar.gz.
File metadata
- Download URL: tpk_ar-0.2.3.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f4c955dbfe1135b8ea1d6e91f29ae707d0ad8df0bf26dac057d6b5fa71f76f3
|
|
| MD5 |
ab24ab2b1cac5edebc775c9457d3fed0
|
|
| BLAKE2b-256 |
14ad97712818c0d08afe679fd92e5db39e3fd358f5cd18721d64a7c60348e37a
|
Provenance
The following attestation bundles were made for tpk_ar-0.2.3.tar.gz:
Publisher:
release.yml on K0lb3/tpk_ar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tpk_ar-0.2.3.tar.gz -
Subject digest:
6f4c955dbfe1135b8ea1d6e91f29ae707d0ad8df0bf26dac057d6b5fa71f76f3 - Sigstore transparency entry: 2312777146
- Sigstore integration time:
-
Permalink:
K0lb3/tpk_ar@81d6b1d38df93d6ee0442ccfa3b2c1f854e59380 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/K0lb3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@81d6b1d38df93d6ee0442ccfa3b2c1f854e59380 -
Trigger Event:
workflow_dispatch
-
Statement type: