aldraco
aldraco is a Python library for Draco mesh/point-cloud compression and decompression, with robust I3S-friendly decoding of custom attributes such as uv-region and feature-index.
Install
pip install aldraco
Decode (one line)
import aldraco
result = aldraco.decode(draco_bytes)
points = result.points
faces = result.faces
uvr = result.uvr # I3S uv-region, if present
feature_index = result.feature_index # I3S feature-index, if present
feature_ids = result.feature_ids # I3S feature-ids from metadata, if present
colors = result.colors # if present
Decode bytes or .gz bytes (auto-detect)
import aldraco
# If `is_gzip=None`, bytes are treated as gzip when the magic header (1F 8B) is present.
result = aldraco.decode_bytes(maybe_gz_bytes, is_gzip=None)
Normalize to Draco bytes (I/O helpers)
import aldraco
# If input is gzip-wrapped Draco, this returns the raw Draco buffer.
draco_bytes = aldraco.decode_to_bytes(maybe_gz_bytes, is_gzip=None)
# Encode to raw Draco bytes (same as `encode(...)`).
draco_bytes2 = aldraco.encode_to_bytes(points, faces=faces)
Write Draco or .gz Draco to file
import aldraco
aldraco.encode_to_file("out.drc", points, faces=faces)
# If output_path does not end with .gz, `.gz` will be appended automatically.
aldraco.encode_to_gzip_file("out.drc", points, faces=faces)
Decode file (requires output_path)
from pathlib import Path
import aldraco
# Writes the Draco raw bytes (after optional gzip preprocessing) to output_path.
out_draco = Path("out.draco")
result = aldraco.decode_file("demo/datas/IntegratedMeshType/1.bin.gz", out_draco, is_gzip=None)
Gzip helpers (vendored zlib)
from pathlib import Path
import aldraco
gz_bytes = Path("1.bin.gz").read_bytes()
raw = aldraco.gzip_decompress_bytes(gz_bytes, is_gzip=None)
gz2 = aldraco.gzip_compress_bytes(raw, level=6, is_gzip=None)
# File helpers require output_path and overwrite if exists.
aldraco.gzip_decompress_file("1.bin.gz", "1.bin", is_gzip=None)
aldraco.gzip_compress_file("1.bin", "1.bin.gz", level=6, is_gzip=None)
Metadata
Release files for aldraco 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 4.2 MB
Release files / aldraco-0.1.4-cp314-cp314-win_amd64.whl
| Download URL | aldraco-0.1.4-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 379.1 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d5338fb707b14bc2c2825b074d60c23d99350f327a35f7bac7e017ef01a9d7a3
|
|
BLAKE2b-256 checksum How to use checksums |
9f4af689c2b8ea1f51170c6d278508edaade0767dc32f269b15e65e83b213b3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / aldraco-0.1.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | aldraco-0.1.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 675.1 kB |
| Tags | CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
38cadceb2cd7e43c1b1a957071f933252109fc3466d8b99f1a83792ed54e6ab6
|
|
BLAKE2b-256 checksum How to use checksums |
abafad5e5c9ac3f0b947c6bec5eeedf1506de402f9ff7cf47d9931d3b7f97a0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / aldraco-0.1.4-cp313-cp313-win_amd64.whl
| Download URL | aldraco-0.1.4-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 369.4 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ea7684389677e2e8a93266f24853e9b10d9e9a83143167ac891036a39d654226
|
|
BLAKE2b-256 checksum How to use checksums |
df65978930f6a87332959908a3ef52ab28222416246eab74cab9eeab1191a3ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / aldraco-0.1.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | aldraco-0.1.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 674.7 kB |
| Tags | CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
f1d74d0083ef35b060da645ae09c1759ce9f1879d25ba7d476fab73b6a781799
|
|
BLAKE2b-256 checksum How to use checksums |
4fbdcf38f8b0a59f277ce624faf4e9713dd442c9d1234dfe6cf8ccacf1f713a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / aldraco-0.1.4-cp312-cp312-win_amd64.whl
| Download URL | aldraco-0.1.4-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 369.4 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4bf352bbd539887a6186f41368ec1b7f2a20b7d3f2d7d10a9b0e89658982b6b1
|
|
BLAKE2b-256 checksum How to use checksums |
7bb989a01feac6c84f4990d32eba8a927efbef7aec5117c821f724249da25560
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / aldraco-0.1.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | aldraco-0.1.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 674.8 kB |
| Tags | CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
ef4d15b79f10d71ef24d3b83bc63d58b44ecc8220483a55c7c93ce0886b2023b
|
|
BLAKE2b-256 checksum How to use checksums |
9805be98d530213e0d356f3691f20ecfdbdeef45ddfa6a6122b4ca6b9ed080e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / aldraco-0.1.4-cp311-cp311-win_amd64.whl
| Download URL | aldraco-0.1.4-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 372.7 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
62ac595f172e62220dc226bbc896c1ab3f5223895adc874d7fc1f84a24f247b1
|
|
BLAKE2b-256 checksum How to use checksums |
54dfb929c832cd78ee0811021ff155fc9470f0679cf4ec73bf6c50141e1e9742
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / aldraco-0.1.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
| Download URL | aldraco-0.1.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 685.1 kB |
| Tags | CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
db31edb7103676a0dad107f6b9bebfa65159698826726c0f779dea2829e3bf64
|
|
BLAKE2b-256 checksum How to use checksums |
fabce4589ccc80b18f27e53723e0e3a5ba19cc3f24e5b613a2c3efd037c4fa16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for aldraco 0.1.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.