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
Metadata
Release files for tpk-ar 0.2.4
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 |
|---|---|---|---|---|
| tpk_ar-0.2.4.tar.gz | 10.8 kB | With provenance | Details for tpk_ar-0.2.4.tar.gz |
Release files / tpk_ar-0.2.4.tar.gz
| Download URL | tpk_ar-0.2.4.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d64897e5a0bcddd58e8a7d4dd922f372da984a0f98bc3b460ec869aab906ee78
|
|
BLAKE2b-256 checksum How to use checksums |
fa02654a73cbd323970b5c1551881968dbadec1d697984fff5fdd33b66764dfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency logSecurity for tpk-ar 0.2.4
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for tpk_ar-0.2.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 1, 2026.
Transparency logA 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.