Skip to main content

A Python wrapper for the Mineatar API.

Project description

py-mineatar

A Python wrapper for mineatar.io

Installation

You can install the package via pip:

pip install py-mineatar

Usage

Here's an example of how to use the py-mineatar package:

Synchronous Example

from mineatar import MineatarClient

with MineatarClient() as client:
    avatar_bytes = client.get_skin("069a79f4-44e9-4726-a5be-fca90e38aaf5") # Notch's UUID

    # Save the avatar image
    with open("notch_skin.png", "wb") as f:
        f.write(avatar_bytes)

Asynchronous Example

import asyncio
from mineatar import AsyncMineatarClient

async def main():
    async with AsyncMineatarClient() as client:
        avatar_bytes = await client.get_skin("069a79f4-44e9-4726-a5be-fca90e38aaf5") # Notch's UUID

        # Save the avatar image
        with open("notch_skin.png", "wb") as f:
            f.write(avatar_bytes)

asyncio.run(main())

Features

  • Fast and easy access to Minecraft avatars and skins.
  • Supports both synchronous and asynchronous operations.
  • Simple and easy-to-use.

License

This project is licensed under the MIT License. See the LICENSE file for details

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_mineatar-1.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_mineatar-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file py_mineatar-1.0.0.tar.gz.

File metadata

  • Download URL: py_mineatar-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for py_mineatar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ce3961e5997a5c7692942b5cbcecc88aa332c5f57ee768da246975b199fb104e
MD5 6992150a2d1fa074bd65c1d43f58df8b
BLAKE2b-256 3c8a2414db81db122599f3d955bbd2543fe9f9bebd21b8df32a0630a5080100a

See more details on using hashes here.

File details

Details for the file py_mineatar-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for py_mineatar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 213e319353f8851bb72faa83d295a924f280c3c190ed368df4aabfbd2ee5ad19
MD5 ee9069123d95539bf9227c1cbe36f11c
BLAKE2b-256 dd75408a4f75db257b5c19966e3dc4ebf2d26b1eeb4d601272fde5b0a3596b9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page