Skip to main content

Getting Minecraft Player Information from Mojang API.

Project description

MCUUID

Getting Minecraft Player Information from Mojang API.

Usage

  1. pip install mcuuid
  2. Use the module like this:

API

> from mcuuid import MCUUID
> player = MCUUID(name="gronkh")
> player.name
'Gronkh'
> player.names
{0: 'Gronkh'}
> player.uuid
'a2080281c2784181b961d99ed2f3347c'

You can also use an existing uuid to start from:

> player = MCUUID(uuid="a2080281c2784181b961d99ed2f3347c")
> player.name
'Gronkh'

Tools

Check syntax of an username:

>from mcuuid.tools import is_valid_minecraft_username
> is_valid_minecraft_username('gronkh'):
True

Check syntax of an UUID:

> from mcuuid.tools import is_valid_mojang_uuid
> is_valid_mojang_uuid('a2080281c2784181b961d99ed2f3347c'):
True

Version information

There is a wrapper around the new MCUUID class to still be usable using former api versions. They are deprecated and not recommended for future use.

License

This software is licensed under the MIT license. Feel free to use it however you like.

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

mcuuid-1.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

mcuuid-1.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file mcuuid-1.1.0.tar.gz.

File metadata

  • Download URL: mcuuid-1.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for mcuuid-1.1.0.tar.gz
Algorithm Hash digest
SHA256 53a3321f69e3f5ee271840422cf5fe8ca2b6116c31ad4ab1bff67b86ccde5ef7
MD5 80165b886310915bf236ff8293df762a
BLAKE2b-256 796f64f48c6915d9b17199eaff7f368ff4a9ed50ca0c761a03c86a2bf1dc3a72

See more details on using hashes here.

File details

Details for the file mcuuid-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcuuid-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for mcuuid-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a9e3a41d875b1a1ad15254e0347819d43253b983788747554dfdc896a006359
MD5 2af6f5514503fc82a32710b4cb246813
BLAKE2b-256 b88a78fa6afef09196dec1552d23013953a1d46ca13162bbbb49461423dc3886

See more details on using hashes here.

Supported by

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