Skip to content

Rezn1r/py-mineatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Python wrapper for mineatar.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages