Skip to main content

mineskin

Simple Python library to work with Minecraft skins

Installation

Install mineskin from PyPI using your favorite package manager

  • pip install mineskin
  • uv add mineskin
  • poetry add mineskin

Usage

from PIL import Image

# Import library
import mineskin
from mineskin.skin_types.abc import MinecraftSkinFormat

# Read skin from file
with Image.open("path/to/skin.png") as img:
    img.load()
    
    skin = mineskin.skin(img)
    
    # Check skin information
    print(f"{skin.format=}")
    print(f"{skin.slim=}")
    print(f"{skin.has_overlay=}")

    # Optimize skin (will mutate img object)
    skin.optimize(keep_ears=False)
    
    # Convert skin to old (before 1.8) format
    # This operation will create new Image object
    legacy_skin = skin.convert(MinecraftSkinFormat.LEGACY)

    # Save the result
    legacy_skin.image.save("path/to/result.png")

Building from source

  • Clone the repo:
    git clone https://github.com/Kiber2009/mineskin.git
    cd mineskin
    
  • Build using uv
    uv build
    
  • Distribution will be available in dist directory

Metadata

Release files for mineskin 0.2.1

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

Source distribution (sdist)

Source distribution for mineskin 0.2.1
File Size Uploaded Provenance Actions
mineskin-0.2.1.tar.gz 5.5 kB With provenance Details for mineskin-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / mineskin-0.2.1.tar.gz

Download URL mineskin-0.2.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2127998edd4a8541be3a39534c8f15f7b77e61ff905228c8855593a37a76c3fa
BLAKE2b-256 checksum
How to use checksums
00c3a7ae0228e06b52c62e7d77c98c7cd8c313fce64e41de9b1143ffd378db7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 22, 2026.

Transparency log

Release files / mineskin-0.2.1-py3-none-any.whl

Download URL mineskin-0.2.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
253117461309c86cba3c19c72f10b63db1f1c44200d2ac6cc076fe5c860f5744
BLAKE2b-256 checksum
How to use checksums
136ee02881d5390e82470e4f54f62b234e18e1a4e7d07f108af62374450a087d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 22, 2026.

Transparency log

Security for mineskin 0.2.1

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 mineskin-0.2.1.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 Nov 22, 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