https://github.com/clerie/mcuuid
MCUUID - Getting Minecraft Player Information from Mojang API.
https://github.com/clerie/mcuuid
minecraft minecraft-api
Last synced: 3 months ago
JSON representation
MCUUID - Getting Minecraft Player Information from Mojang API.
- Host: GitHub
- URL: https://github.com/clerie/mcuuid
- Owner: clerie
- License: mit
- Fork: true (EthanJoyce/MinecraftUsernameToUUID)
- Created: 2018-10-28T10:02:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T21:40:38.000Z (over 2 years ago)
- Last Synced: 2025-11-27T13:31:25.416Z (4 months ago)
- Topics: minecraft, minecraft-api
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.