AddressablesToolsPy
Python library for reading Unity Addressables catalog files from JSON or binary catalog data.
Only reading is implemented.
Binary catalog versions 1 through 3 are supported. Version 3 support has not yet been tested against a broad catalog corpus.
Installation
pip install addressablestools
Version 1.1 includes the Python API and Rust accelerator in the same wheel, with
no separate runtime dependency. Standard CPython 3.12+ on the
supported platforms installs a prebuilt wheel without a
Rust toolchain. Building from source requires Rust 1.88+ and a platform linker.
backend="python" still selects the reference parser.
Parse JSON catalogs
from pathlib import Path
from addressablestools import AssetBundleRequestOptions, parse_json
data = Path("tests/samples/catalog.json").read_text(encoding="utf-8")
catalog = parse_json(data)
for key, locations in catalog.resources.items():
if not isinstance(key, str) or not key.endswith(".bundle"):
continue
options = locations[0].data_as(AssetBundleRequestOptions)
print(f"Bundle {key}, Crc: {options.crc}, Hash: {options.hash}")
Parse binary catalogs
from pathlib import Path
from addressablestools import parse_binary
catalog = parse_binary(Path("tests/samples/catalog.bin").read_bytes())
location = catalog.resources["Anim/Network"][0]
print(location.primary_key)
print(location.internal_id)
print(location.provider_id)
print(location.type.class_name if location.type else None)
For reproducible parsing measurements and optimization results, see the catalog benchmarks.
To build the package, including its Rust module, from this checkout:
uv sync --locked
parse(), parse_binary(), and parse_json() use it automatically
for supported calls. Select the backend per call:
from pathlib import Path
from addressablestools import available_backends, parse_json
data = Path("tests/samples/catalog.json").read_text(encoding="utf-8")
print(available_backends("json")) # ("python", "rust") when the JSON accelerator is installed
catalog = parse_json(data, backend="auto")
reference = parse_json(data, backend="python")
auto uses Python when the bundled extension is missing or incompatible.
DecoderRegistry is supported: standard registries keep built-in dispatch in Rust
and call the Python object decoder only for custom
decoders. Calls to register() and alias() invalidate cached dispatch decisions.
rust requires native support and raises
NativeBackendUnavailableError instead of silently falling back. Backend selection
is local to each call. The deprecated API accepts the same keyword; patchers and
handlers use the same registry bridge.
The previous native extra remains accepted as a compatibility alias.
Auto-detect catalog format
parse() dispatches str input to JSON parsing and bytes input to binary parsing.
from pathlib import Path
from addressablestools import parse
json_catalog = parse(Path("tests/samples/catalog.json").read_text(encoding="utf-8"))
binary_catalog = parse(Path("tests/samples/catalog.bin").read_bytes())
print(len(json_catalog.resources))
print(len(binary_catalog.resources))
Query resource locations
Catalog resources are exposed with Python-style names.
from pathlib import Path
from addressablestools import parse_json
catalog = parse_json(Path("tests/samples/catalog.json").read_text(encoding="utf-8"))
asset_key = "Assets/Paripari/AddressableAssets/VFX Texture Assets/ParticleTextures/sparkle.png"
asset_location = catalog.locate(asset_key)[0]
print(asset_location.primary_key)
print(asset_location.internal_id)
print(asset_location.provider_id)
if asset_location.dependency_key is not None:
dependency_location = catalog.locate(asset_location.dependency_key)[0]
print(dependency_location.primary_key)
print(dependency_location.internal_id)
Custom binary object handling
Binary catalogs may contain custom serialized object types. A decoder registry can alias a custom type to a supported built-in type or register a decoder function for that type.
from pathlib import Path
from addressablestools import DecoderRegistry, parse_binary
from addressablestools.decoder import SerializedObjectDecoder
registry = DecoderRegistry()
registry.alias(
"Custom.Assembly; Custom.AssetBundleRequestOptions",
SerializedObjectDecoder.ASSET_BUNDLE_REQUEST_OPTIONS_MATCH_NAME,
)
catalog = parse_binary(Path("catalog.bin").read_bytes(), registry=registry)
Decoder functions receive the exact serialized type together with the object offset.
These calls use the bundled Rust resource traversal automatically. Add
backend="rust" to require it or
backend="python" to use the reference parser. Decoder functions keep running in
Python with the same reader and shared object cache. Registry subclasses and
instance overrides of resolution methods retain the per-object Python bridge.
from dataclasses import dataclass
from pathlib import Path
from addressablestools import BinaryDecodeContext, DecoderRegistry, parse_binary
@dataclass(frozen=True)
class CustomInt32Value:
value: int
registry = DecoderRegistry()
@registry.register("Custom.Assembly; Custom.Int32Value")
def decode_custom_int32(context: BinaryDecodeContext) -> CustomInt32Value:
if context.is_default:
return CustomInt32Value(0)
context.reader.seek(context.offset)
return CustomInt32Value(context.reader.read_int32())
catalog = parse_binary(Path("catalog.bin").read_bytes(), registry=registry)
Changelog
See the changelog for release history and upgrade notes.
Deprecated API
The old AddressablesTools import path is deprecated as of 0.2.0. It remains available as a thin compatibility layer, but new code should import addressablestools directly. Calling AddressablesTools.parse(), AddressablesTools.parse_json(), or AddressablesTools.parse_binary() emits a DeprecationWarning.
Legacy compatibility
Existing callers can keep using the old import path while migrating:
from pathlib import Path
import AddressablesTools
from AddressablesTools.classes import AssetBundleRequestOptions
catalog = AddressablesTools.parse_json(Path("tests/samples/catalog.json").read_text("utf-8"))
for key, locations in catalog.Resources.items():
if isinstance(key, str) and key.endswith(".bundle"):
assert isinstance(locations[0].Data.Object, AssetBundleRequestOptions)
print(locations[0].Data.Object.Crc)
The legacy AddressablesTools.classes module is also provided for existing imports while migration is in progress.
Metadata
Release files for addressablestools 1.1.0
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 | |
|---|---|---|---|---|
| addressablestools-1.1.0.tar.gz | 555.4 kB | With provenance | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| addressablestools-1.1.0-cp312-abi3-win_amd64.whl | CPython 3.12 | abi3 | Windows x86-64 | Details |
| addressablestools-1.1.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| addressablestools-1.1.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| addressablestools-1.1.0-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details |
| addressablestools-1.1.0-cp312-abi3-macosx_10_13_x86_64.whl | CPython 3.12 | abi3 | macOS 10.13+ x86-64 | Details |
Total release size: 1.9 MB
Release files / addressablestools-1.1.0.tar.gz
| Download URL | addressablestools-1.1.0.tar.gz |
|---|---|
| Size | 555.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c4e26edd0ca9ea8e6d3773f57a8e2bf1b333a9c2c397f521fc5eb9e2f3d337e
|
|
BLAKE2b-256 checksum How to use checksums |
523bdc3fd6b045ab9f70ee7722c482c412b0e80a58499c1d0d42213483c74578
|
| 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 Sep 9, 2026.
Transparency logRelease files / addressablestools-1.1.0-cp312-abi3-win_amd64.whl
| Download URL | addressablestools-1.1.0-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 187.1 kB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
55c6faea5c3f0ebf5ca941e5dba393638ef7ba5eb888eb0e1f9f6eb967873c6f
|
|
BLAKE2b-256 checksum How to use checksums |
45de8d8e68eda1a713d392ab73ac7cbc4af78a16c99cb6cc200fcf9794583b9e
|
| 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 Sep 9, 2026.
Transparency logRelease files / addressablestools-1.1.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | addressablestools-1.1.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 310.6 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e96ba49eae3e1a867200dce5354d7fc14c7dd0ccbcbc0551161a46acf613cbdb
|
|
BLAKE2b-256 checksum How to use checksums |
3dd02e3bce397ea660f6ed241061b560d54323954c54cce1d330e158add4f555
|
| 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 Sep 9, 2026.
Transparency logRelease files / addressablestools-1.1.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | addressablestools-1.1.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 307.2 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
9c97ea220796f8fcc1d552f8a79373f55548081eff3d74c791edd76e7c6bffc2
|
|
BLAKE2b-256 checksum How to use checksums |
7cc68bd5318fd605f4fca22b3b597178fee1e26ece48cd2b1b245a4d89a8cf93
|
| 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 Sep 9, 2026.
Transparency logRelease files / addressablestools-1.1.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | addressablestools-1.1.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 280.6 kB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f8b8d4e46fa09f36f2ecc78c277c96f15a9a33be627750a42877ae2ebf888550
|
|
BLAKE2b-256 checksum How to use checksums |
a2c4a77500492bee3d24fe384f591d0b7dad8e92c54c6f0927df213b8c6c6fb0
|
| 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 Sep 9, 2026.
Transparency logRelease files / addressablestools-1.1.0-cp312-abi3-macosx_10_13_x86_64.whl
| Download URL | addressablestools-1.1.0-cp312-abi3-macosx_10_13_x86_64.whl |
|---|---|
| Size | 289.1 kB |
| Tags | CPython 3.12 abi3 macOS 10.13+ x86-64 |
|
SHA-256 checksum How to use checksums |
109fac42c5943f123cd0fd876152bdaf8df1bf017a7a5b10093f8ee0836925d4
|
|
BLAKE2b-256 checksum How to use checksums |
a8273357d6a4808e62d6f0bdfecf4e5fc89911e9c288d1903c47d07c7e61c45a
|
| 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 Sep 9, 2026.
Transparency logSecurity for addressablestools 1.1.0
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
All 6 files in this release have been uploaded with provenance metadata.
Attestation for addressablestools-1.1.0.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 Sep 9, 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.