Python copy of AddressablesTools
Project description
AddressablesToolsPy
Python copy of AddressablesTools
Usage
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.0.tar.gz
(13.5 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.0.tar.gz.
File metadata
- Download URL: addressablestools-0.1.0.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f6f37b17b7e9411a45c7746d395e03c83e4133ee4f2da4c77f7abcfb1c45607
|
|
| MD5 |
f5aacef8716d9ec6879a8f03ebcfdaa5
|
|
| BLAKE2b-256 |
547f3244857e42b340c1825b31d5548710608f27fd187dee5e64d1a8a4a337b9
|
File details
Details for the file addressablestools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: addressablestools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fba922dd11919cba597375dd6b53d08c93a6b78e0304a3986a1de1db4d28e749
|
|
| MD5 |
b1985d857bfb82585f260d5a0d5ac20c
|
|
| BLAKE2b-256 |
e47e66b0c18b1270c622c2b908c41f8591483b6184a0491bd9f72c5c0c7e9f66
|