Skip to main content

madeitpx

madeitpx

Python binding for madeitpx. Converts RGBA8 pixel buffers to an output grid with a limited color palette.

madeitpx conversion examples

python -m pip install madeitpx

The release wheel includes native libraries for Windows, Linux (glibc), and macOS on x64 and ARM64. The matching library is loaded automatically.

from madeitpx import ConversionOptions, convert_rgba8

pixels = bytes((
    255, 0, 0, 255,
    0, 255, 0, 255,
    0, 0, 255, 255,
    255, 255, 255, 255,
))
result = convert_rgba8(
    pixels,
    input_width=2,
    input_height=2,
    target_width=1,
    target_height=1,
    options=ConversionOptions(palette_colors=4),
)

Inputs may be bytes, bytearray, or memoryview. Set input_stride for padded source rows. Conversion options include preset, palette_colors, background_rgb, sampling, and cluster_cleanup. Use Preset.PIXELART for outline-preserving conversion and structure cleanup. It uses 16 palette colors by default and ignores the sampling option. See the pixelart preset documentation for details.

Python 3.9 or newer is required. Linux native libraries target glibc; musl Linux is not currently supported. For local builds, set MADEITPX_LIBRARY_PATH or pass library_path to convert_rgba8.

The release workflow publishes to PyPI using GitHub's trusted publishing. Publishing requires a PyPI trusted publisher configured for this repository, the release.yml workflow, and the pypi environment.

Metadata

Release files for madeitpx 0.2.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 madeitpx 0.2.0
File Size Uploaded Provenance Actions
madeitpx-0.2.0.tar.gz 857.1 kB With provenance Details for madeitpx-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for madeitpx 0.2.0
File Interpreter ABI Platform Actions
madeitpx-0.2.0-py3-none-any.whl Python 3 none any Details for madeitpx-0.2.0-py3-none-any.whl

Total release size: 1.7 MB

Release files / madeitpx-0.2.0.tar.gz

Download URL madeitpx-0.2.0.tar.gz
Size 857.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8bede40ac7e1a89559d4b5edcfe260d6566a88ce001616287a47c6054d85c93f
BLAKE2b-256 checksum
How to use checksums
a657d07d093d77cf3b5e73fb7e7e1ffca0f30419c0ec9a82856300c1b2e8542a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Release files / madeitpx-0.2.0-py3-none-any.whl

Download URL madeitpx-0.2.0-py3-none-any.whl
Size 861.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6774b264954e8ad58af72ce065b3bb0360a8e5d503ccf148377dc77d1d802f69
BLAKE2b-256 checksum
How to use checksums
079b7464924c84d3dc3a4e0e8526c5952b4f0472cc9488d060dd5932897fcebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

Security for madeitpx 0.2.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for madeitpx-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.

Transparency log

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