Go to file
clerie 0963e78b4b Rewrite class construction, usage, test and readme.
Added correct name support.
2018-10-28 12:02:55 +01:00
.gitignore Initial commit. 2015-03-11 16:46:17 -02:30
LICENSE.txt Add license (MIT). 2015-03-11 17:09:44 -02:30
README.md Rewrite class construction, usage, test and readme. 2018-10-28 12:02:55 +01:00
mcuuid.py Rewrite class construction, usage, test and readme. 2018-10-28 12:02:55 +01:00
test.py Rewrite class construction, usage, test and readme. 2018-10-28 12:02:55 +01:00

README.md

MCUUID

Getting Minecraft Player Information from Mojang API.

Usage

  1. Add the mcuuid.py file to your Python path.
  2. Use the module like this:
from mcuuid import GetPlayerData

player = GetPlayerData(username)

if player.valid is True:
    uuid = player.uuid
    name = player.username

Read test.py for some explaination.

When username = "gronkh": uuid will be "a2080281c2784181b961d99ed2f3347c" and name will be "Gronkh"

Test file

Usage

$ python test.py gronkh

or

$ python test.py
Please enter a username:
gronkh

Response:

UUID: a2080281c2784181b961d99ed2f3347c
correct name: Gronkh

License

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