A Python wrapper for Perfare's Texture2DDecoder library, enabling decoding of Unity Texture2D assets (DXT, ETC, PVRTC, ASTC, etc.) from asset bundles. Current version: 1.0.6. Release cadence is low, primarily maintenance.
pip install texture2ddecoderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize the decoder and call format-specific methods (e.g., DXT1, ETC2_RGB, ASTC, etc.) with width, height, and compressed data bytes.
Open the file in binary mode and read all bytes: with open('texture.dds', 'rb') as f: data = f.read()Check the texture metadata (e.g., from Unity assets) to determine the format, then call the appropriate method (e.g., decoder.DXT1(...), decoder.ASTC(...)).
Update calls to use (width, height, data) ordering.
Use format-specific methods: decoder.DXT1(...), decoder.ETC2_RGB(...), etc.
Install from source or use a precompiled wheel for your platform. If missing, try building from source with: pip install --no-binary texture2ddecoder texture2ddecoder
No dependency data recorded yet.