Skip to main content

qoi-rs

Python library made using qoi and pyo3.

Usage

The decode function operates on normal python types implementing the Buffer protocol (bytes, memoryview, bytesarray). The encode function returns a custom image object with all information extracted from the qoi image. The raw pixel data is available as a bytes object at the data property.

from qoi_rs import decode, encode

with open("./qoi_test_images/dice.qoi", "rb") as file:
    image = decode(file.read())

qoi_bytes = encode(
    image.data,
    # required
    height=image.height, width=image.width,
    # defaults to "RGB" or "RGBA" depending on bytes in data
    input_channels=image.mode,
    # optional colour space
    colour_space=image.colour_space,
)

assert decode(qoi_bytes).data == image.data

With Pillow

For use with Pillow are two convenience functions available. While encode_pillow doesn't depend on Pillow and could work with other types, decode_pillow tries to import Pillow and fails if it isn't installed. Use pip install qoi_rs[pillow] to make sure a supported Pillow version is installed if you use one of these functions with Pillow.

from PIL import Image
from qoi_rs import decode_pillow, encode_pillow

image: Image.Image = Image.open("./qoi_test_images/dice.png")

qoi_bytes: bytes = encode_pillow(image)
decoded: Image.Image = decode_pillow(qoi_bytes)

assert decoded.width == image.width
assert decoded.height == image.height

assert decoded.get_flattened_data() == image.get_flattened_data()

image.close()
decoded.close()

Metadata

Release files for qoi-rs 4.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qoi-rs 4.1.0
File Size Uploaded Provenance
qoi_rs-4.1.0.tar.gz 3.4 MB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for qoi-rs 4.1.0
File
qoi_rs-4.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ x86-64 Details
qoi_rs-4.1.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.17+ ARM64 Details
qoi_rs-4.1.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl CPython 3.15 abi3t, abi3 Linux musl 1.2+ x86-64 Details
qoi_rs-4.1.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl CPython 3.15 abi3t, abi3 Linux musl 1.2+ ARM64 Details
qoi_rs-4.1.0-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.15 abi3t, abi3 Linux glibc 2.17+ x86-64 Details
qoi_rs-4.1.0-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.15 abi3, abi3t Linux glibc 2.17+ ARM64 Details
qoi_rs-4.1.0-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details
qoi_rs-4.1.0-cp314-cp314-musllinux_1_2_aarch64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ ARM64 Details
qoi_rs-4.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details
qoi_rs-4.1.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ ARM64 Details
qoi_rs-4.1.0-cp314-abi3-musllinux_1_2_x86_64.whl CPython 3.14 abi3 Linux musl 1.2+ x86-64 Details
qoi_rs-4.1.0-cp314-abi3-musllinux_1_2_aarch64.whl CPython 3.14 abi3 Linux musl 1.2+ ARM64 Details
qoi_rs-4.1.0-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.14 abi3 Linux glibc 2.17+ x86-64 Details
qoi_rs-4.1.0-cp314-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.14 abi3 Linux glibc 2.17+ ARM64 Details
qoi_rs-4.1.0-cp312-abi3-musllinux_1_2_x86_64.whl CPython 3.12 abi3 Linux musl 1.2+ x86-64 Details
qoi_rs-4.1.0-cp312-abi3-musllinux_1_2_aarch64.whl CPython 3.12 abi3 Linux musl 1.2+ ARM64 Details
qoi_rs-4.1.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.12 abi3 Linux glibc 2.17+ x86-64 Details
qoi_rs-4.1.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.12 abi3 Linux glibc 2.17+ ARM64 Details

Total release size: 17.1 MB

Release files / qoi_rs-4.1.0.tar.gz

Download URL qoi_rs-4.1.0.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
2ab21eaec15cd5dd868e671dd3f91cbf9d4115bc6b7f7804fb9f192f8c9238bc
BLAKE2b-256 checksum
How to use checksums
98895cdd85f6dc10fbdf490ee516b21b7f33702a5f99680c63ff2bb38cf75a2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL qoi_rs-4.1.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 746.5 kB
Tags Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
ec3ecc01687c90a9fd9d75049e0d262a862688d9c9213ff8598f4b72dbe9d307
BLAKE2b-256 checksum
How to use checksums
5342338c188c860e8c584424806563eb40de982a9c6aa1dd387c33ea3455948c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL qoi_rs-4.1.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 707.0 kB
Tags Linux glibc 2.17+ ARM64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
13947309bdebde345d2f35e62c8ed6f65f8f844be0a9187f68772d08d235b30d
BLAKE2b-256 checksum
How to use checksums
aecac75a50fe7fd0239f76a037ceb76383a388af4ee950332918d545dbc3f684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl

Download URL qoi_rs-4.1.0-cp315-abi3.abi3t-musllinux_1_2_x86_64.whl
Size 830.0 kB
Tags CPython 3.15 Linux musl 1.2+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
beb7d3bcb09d261192581d396eee999bd09639e9ef4ccfeaffbf8985b2961990
BLAKE2b-256 checksum
How to use checksums
662d7434b4684db2c12c57daaa9bb76dad440ea0a396eaa799e033c17fbf1f28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl

Download URL qoi_rs-4.1.0-cp315-abi3.abi3t-musllinux_1_2_aarch64.whl
Size 769.7 kB
Tags CPython 3.15 Linux musl 1.2+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
28f2c94640787221b2c9ef823fae1ac1eeef49cb05b46a32e37153f4679a24db
BLAKE2b-256 checksum
How to use checksums
a828bce8e2fc4990c8bf30b59306154e834c219532495131097113f70ea31ca4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL qoi_rs-4.1.0-cp315-abi3.abi3t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 746.4 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64 abi3 abi3t
SHA-256 checksum
How to use checksums
538870d0e2197579b53736133d91ba78c0a503fa059cb0861af630bb0a9d38d9
BLAKE2b-256 checksum
How to use checksums
e08e477a01060c842d7eff374484e7c278906a1e4095a165b037239d72c72ff0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL qoi_rs-4.1.0-cp315-abi3.abi3t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 704.9 kB
Tags CPython 3.15 Linux glibc 2.17+ ARM64 abi3 abi3t
SHA-256 checksum
How to use checksums
85977d96ed8c71ad952dc517bfc0f3f8450eb7ea2327ad9a48d9dd78eeef6a85
BLAKE2b-256 checksum
How to use checksums
747f7245900045177d73e6c67873aca61ba0fcc94515562a970408dee209990e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL qoi_rs-4.1.0-cp314-cp314-musllinux_1_2_x86_64.whl
Size 827.6 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
0160ae616e8edd3e5057dc9543326cceb65ba76f538336cae4bddcdff0805cbd
BLAKE2b-256 checksum
How to use checksums
336833e440209b8a4867cdc9be746ab187004861753e68405eaf0c3311aec1bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp314-cp314-musllinux_1_2_aarch64.whl

Download URL qoi_rs-4.1.0-cp314-cp314-musllinux_1_2_aarch64.whl
Size 769.0 kB
Tags CPython 3.14 Linux musl 1.2+ ARM64
SHA-256 checksum
How to use checksums
ae4bb420306f81c29474fe9935b67cf0d336b8460e0d3a349dc93d50be7697ce
BLAKE2b-256 checksum
How to use checksums
3e16a9aac101d0b06b677d3669e1d631c75f1a0b5b9923d84d53b54ca7b43b70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL qoi_rs-4.1.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 745.8 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b41bba28c766ae03b5053d0bf11d99d53ce520849b9de1c88866016aa4d933ac
BLAKE2b-256 checksum
How to use checksums
670d9446b0e542081ac832cffe12b01bb5f870332f523065f812b6fb6442f58d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL qoi_rs-4.1.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 704.4 kB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
fe4a00c0acaff62c85ddab35e0343bfcb75176daa506459be89736ceb97a57cc
BLAKE2b-256 checksum
How to use checksums
27faa10dbf94e8836428b38b8f0aae0a22047f007a1513f1c8c2b8a87a6497f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp314-abi3-musllinux_1_2_x86_64.whl

Download URL qoi_rs-4.1.0-cp314-abi3-musllinux_1_2_x86_64.whl
Size 828.7 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
5109f54993e924dc69bb0ebf87f50db4ba25464e156a704daa4d8a474dd07439
BLAKE2b-256 checksum
How to use checksums
9c7fca445abd479e3fa93ad0a9e6f28a3baefb7d205daf1ce547e84834380be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp314-abi3-musllinux_1_2_aarch64.whl

Download URL qoi_rs-4.1.0-cp314-abi3-musllinux_1_2_aarch64.whl
Size 768.3 kB
Tags CPython 3.14 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
58ddbeb1a400efcb95dc16a7d83a3a9ba1980587770a3568410719fe5de0da70
BLAKE2b-256 checksum
How to use checksums
0fc95cba5214fbe6c203c0307838abeb14accf67645a1529360cac9afdfe5663
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL qoi_rs-4.1.0-cp314-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 744.5 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
763fbf8cd42dbed17fb5c5817e468eb68db8a7bd0a1451ebc728da8f6ada9207
BLAKE2b-256 checksum
How to use checksums
a5d04330c0cb4e2c4ceede1b50f74973e0f89a36a5768ab0d5898fa7864ff1a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp314-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL qoi_rs-4.1.0-cp314-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 703.8 kB
Tags CPython 3.14 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
c936ede04b9b55a9754690f6c825f24218efb017fa448f0a12fc38e3ecf9bcd3
BLAKE2b-256 checksum
How to use checksums
983508cd3c2733fbf4732a825bdc9ea910fae810ae6af3635b249444d8a32075
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp312-abi3-musllinux_1_2_x86_64.whl

Download URL qoi_rs-4.1.0-cp312-abi3-musllinux_1_2_x86_64.whl
Size 828.8 kB
Tags CPython 3.12 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
811bc390e22ec2a6beab21edf2dca19645b10e4fc4d1c089a1b6568f4204e113
BLAKE2b-256 checksum
How to use checksums
97eb8d4f2a0a686b50c945699f173cac4688f914b6e2cb9f43a4f200fea093e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp312-abi3-musllinux_1_2_aarch64.whl

Download URL qoi_rs-4.1.0-cp312-abi3-musllinux_1_2_aarch64.whl
Size 767.8 kB
Tags CPython 3.12 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
5c2f659e7303ce81f0f2001339ca09e44b025800c86a3562d07f3a977c6d912f
BLAKE2b-256 checksum
How to use checksums
3504d27f5d5e271eeb836e027709e715ca54e701f320a62adc07d6c6bb8318fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL qoi_rs-4.1.0-cp312-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 744.4 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
b1d9c34b34f5bc6e52dcc787559578c396974c7dff5502b704371b45eef6d04d
BLAKE2b-256 checksum
How to use checksums
0baea89ea95cfbb276dd2aac4887e9643597c27f2cc306f4e9e4dccb229b1848
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qoi_rs-4.1.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL qoi_rs-4.1.0-cp312-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 703.9 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
96079abbf6f09bde06ac6896aa513fd878850f361f3efa70b99d3ceaa5da7553
BLAKE2b-256 checksum
How to use checksums
e2d663d9f5464ff87cd0379e28b8b77657690c0ce8cd486da12e8ef2216b4eab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for qoi-rs 4.1.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page