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
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)
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.
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.0.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.0.0.tar.gz | 24.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| addressablestools-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.1 kB
Release files / addressablestools-1.0.0.tar.gz
| Download URL | addressablestools-1.0.0.tar.gz |
|---|---|
| Size | 24.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1262a176122a80fe7ab880103ae9f718e518ce29ec337fd0084e926738926068
|
|
BLAKE2b-256 checksum How to use checksums |
2063f2fd7e49fcb51c164d7593062229c9e0f30f248ed6ed6600d3f7be8dd79c
|
| 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 10, 2026.
Transparency logRelease files / addressablestools-1.0.0-py3-none-any.whl
| Download URL | addressablestools-1.0.0-py3-none-any.whl |
|---|---|
| Size | 20.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d4acca949228abe9ae3493f0f5d8675eb29e2458a0e822473301ccf46f12222
|
|
BLAKE2b-256 checksum How to use checksums |
9d158d80e2d4fc9d13ed455b6048a16c75f971196c62fe6568f0f9a55eaf8f78
|
| 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 10, 2026.
Transparency logSecurity for addressablestools 1.0.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 2 files in this release have been uploaded with provenance metadata.
Attestation for addressablestools-1.0.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 Aug 10, 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.