Skip to main content

A Python wrapper for the Mineatar API.

Project description

py-mineatar

Tests Ruff Lint PyPI - Version PyPI - Python Version License

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.2.tar.gz (5.1 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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for py_mineatar-1.0.2.tar.gz
Algorithm Hash digest
SHA256 26cbc56d046d29f37eb8cc639a1edbc65746e4e0479fc366a833e701c9c0815f
MD5 019e39873ce06b99f9c515e4f0487c6f
BLAKE2b-256 26c73940766b9ab978233a226cead2602c115c90a9969c2deabcec8e90396209

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_mineatar-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9aeb93c5a2e4b6ec3cc18e479b8085a73259be30dd24e5d3ed9dd94488613ba0
MD5 74b507b9abe338e216db5e227aa7025a
BLAKE2b-256 b8aa5f5287cb869a676138958eea2df4ff14d2b71a3e7d3b5ffd913c94cd9b7c

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