--- id: astc-encoder-py version: "0.1.12" license: MIT License Copyright (c) 2024 Rudolf Kolbe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal… (full text in the JSON record) license_treatment: permissive maintenance: aging --- # astc-encoder-py — a python wrapper for astc-encoder License: permissive · Maintenance: aging · Downloads: 147.3K/mo ## What it is and what it does astc-encoder-py is a Python wrapper around the ARM ASTC encoder library, exposing both low-level compression and decompression APIs. It lets you convert images to ASTC texture format (used in graphics pipelines) and back, with support for different color profiles, block dimensions, and quality settings. The package supports Python 3.7 through 3.13 with prebuilt wheels for most architectures. It depends only on archspec. The binding is relatively new (first release October 2024) and sees infrequent updates, with the last release 342 days ago. Use it for: - Compress game textures to ASTC format for mobile or console deployment. - Convert ASTC-compressed textures back to standard formats for inspection or re-encoding. - Experiment with different ASTC block sizes and quality settings to optimize texture memory usage. - Automate texture asset preparation in graphics pipelines. - Integrate ASTC encoding into batch image processing workflows. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. astc-encoder-py compresses and decompresses images to and from ASTC texture format, with optional codec integration for direct image handling. Yes, if you need ASTC texture compression in Python. The package installs cleanly with prebuilt wheels across most platforms, has no known vulnerabilities, and carries an unrestrictive MIT license. However, the project is aging (last release 342 days ago) with low adoption (3 GitHub stars), so evaluate whether you need active maintenance or community support before committing to it for production use. ## Install pip install astc-encoder-py uv add astc-encoder-py poetry add astc-encoder-py ## Installing astc-encoder-py Before you install: Medium install friction due to compiled wheels; prebuilt wheels cover most platforms including x86_64, ARM, PowerPC, and s390x on Linux, macOS, and Windows. Last release was 342 days ago; repository is active but aging. License in practice: MIT License permits commercial and private use with minimal restrictions; you must include the license notice in distributions but face no copyleft obligations. Quickstart: from astc_encoder import ASTCConfig, ASTCContext, ASTCImage, ASTCProfile, ASTCSwizzle, ASTCType config = ASTCConfig(ASTCProfile.LDR_SRGB, 4, 4) context = ASTCContext(config) image = ASTCImage(ASTCType.U8, 512, 512, data=b'') swizzle = ASTCSwizzle.from_str("RGBA") compressed = context.compress(image, swizzle) Requires Python 3.7 or later; archspec is a runtime dependency. Verify before relying: - Performance characteristics (compression speed, output size) relative to other texture formats. - Stability and maturity of the binding relative to the underlying astc-encoder library. - Whether SVE support for ARM (listed as TODO) affects performance on modern ARM systems. - Real-world use cases and adoption beyond the 3 GitHub stars currently visible. ## Package facts - License: MIT License Copyright (c) 2024 Rudolf Kolbe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal… (full text in the JSON record) (permissive) - Python support: supports_current - Install friction: medium - Maintenance: aging - Downloads: 147.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags astc texture compression, image compression library, astc encoder decoder, texture format conversion, image codec astc, arm astc encoding, image data compression, texture-compression, image-processing, game-development [View on SkillFed](https://skillfed.io/packages/astc-encoder-py) · [View on PyPI](https://pypi.org/project/astc-encoder-py/)