Python copy of AddressablesTools
Project description
AddressablesToolsPy
Python copy of AddressablesTools
Only reading is implemented
Usage
pip install addressablestools
from pathlib import Path
from AddressablesTools import parse
def main():
data = Path("tests/samples/catalog.json").read_text("utf-8")
catalog = parse(data)
for key, locs in catalog.Resources.items():
if not isinstance(key, str):
continue
if not key.endswith(".bundle"):
continue
res_loc = locs[0]
print(
f"Bundle {key}, Crc: {res_loc.Data.Object.Crc}, Hash: {res_loc.Data.Object.Hash}"
)
print("-" * 50)
asset_locs = catalog.Resources[
"Assets/Paripari/AddressableAssets/VFX Texture Assets/ParticleTextures/sparkle.png"
]
dep_key = asset_locs[0].DependencyKey
print(f"Dependency of {asset_locs[0].PrimaryKey}: {dep_key}")
dep_bundle = catalog.Resources[dep_key][0]
print(f"ProviderId of {dep_bundle.PrimaryKey}: {dep_bundle.ProviderId}")
print(f"InternalId of {dep_bundle.PrimaryKey}: {dep_bundle.InternalId}")
if __name__ == "__main__":
main()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
addressablestools-0.1.5.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file addressablestools-0.1.5.tar.gz.
File metadata
- Download URL: addressablestools-0.1.5.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4441066506dcda3c334e1923001bd2f1b53efb87daaea8ed9a74decd85874ca4
|
|
| MD5 |
5e3b93baa6d8bb9f6568bec98ea47e19
|
|
| BLAKE2b-256 |
e7287c5012c72ecddbc494c1866965548d01d6af408b622232b182a137e6bab9
|
File details
Details for the file addressablestools-0.1.5-py3-none-any.whl.
File metadata
- Download URL: addressablestools-0.1.5-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71ce0f9afca5a877d2d8eb31946b2654bd174a867807213a5cc3c0432ea34186
|
|
| MD5 |
2214b8481faeb054df4ae4b4205ddb3d
|
|
| BLAKE2b-256 |
66dc376b01fb8aae8ab381b3d8d04a74d12a10b9c982500d10fd8146d3cb59f6
|