MCUUID
Getting Minecraft Player Information from Mojang API.
Usage
pip install mcuuid- Use the module like this:
API
from mcuuid.api import GetPlayerData
player = GetPlayerData(identifier)
if player.valid is True:
uuid = player.uuid
name = player.username
Identifier can be a username or a UUID.
When identifier = "gronkh":
uuid will be "a2080281c2784181b961d99ed2f3347c"
and name will be "Gronkh"
player = GetPlayerData(identifier, timestamp)
Some names are time-sensitive. (When they are changed) So you can choose a special time.
It even works with UUIDs. They respond the username at the given time.
Tools
Syntax check of username
from mcuuid.tools import is_valid_minecraft_username
if is_valid_minecraft_username('gronkh'):
print('Valid')
Syntaxcheck of UUID
from mcuuid.tools import is_valid_mojang_uuid
if is_valid_mojang_uuid('a2080281c2784181b961d99ed2f3347c'):
print('Valid')
Test file
Usage
$ python test.py gronkh
or
$ python test.py a2080281c2784181b961d99ed2f3347c
or
$ python test.py
Please enter a username or UUID:
gronkh
or
$ python test.py
Please enter a username or UUID:
a2080281c2784181b961d99ed2f3347c
Response:
UUID: a2080281c2784181b961d99ed2f3347c
correct name: Gronkh
License
This software is licensed under the MIT license. Feel free to use it however you like.
Metadata
Release files for mcuuidButWorks 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mcuuidButWorks-0.3.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcuuidButWorks-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.8 kB
Release files / mcuuidButWorks-0.3.tar.gz
| Download URL | mcuuidButWorks-0.3.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2511d58c0b66411234aa999354bdabae51e259f41cb8a7c8bcf42feacf4cdfb
|
|
BLAKE2b-256 checksum How to use checksums |
d96c1554b608114d3e12af88d45ba29323524ba470d9219726b8c46b5bff639c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Release files / mcuuidButWorks-0.3-py3-none-any.whl
| Download URL | mcuuidButWorks-0.3-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2df434c6b501400e9c34e15fde2e0c9692371d02c9b5c78e17682c1dbf58ac2
|
|
BLAKE2b-256 checksum How to use checksums |
02c7ce78a8353543383f3a1bfe69a800f0f350a60c66f31ee77754be88df0430
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.12.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for mcuuidButWorks 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.