Mojang
Mojang is a Python package for accessing Mojang's services. It serves as a simple wrapper around Mojang's API
and can be used to convert UUIDs, get profile information, and much more.
The library does not currently support authentication or login features.
Installation
Python 3.6 or higher is required.
To install the library, you can just run the following console command:
python -m pip install mojang
Quickstart
from mojang import MojangAPI
uuid = MojangAPI.get_uuid("Notch")
if not uuid:
print("Notch is not a taken username.")
else:
print(f"Notch's UUID is {uuid}")
profile = MojangAPI.get_profile(uuid)
print(f"Notch's skin URL is {profile.skin_url}")
print(f"Notch's skin model is {profile.skin_model}")
print(f"Notch's cape URL is {profile.cape_url}")
To see a complete list of methods, read the documentation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mojang-0.2.0.tar.gz.
File metadata
- Download URL: mojang-0.2.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2323a79dd87b64f0753c4c28c00e186ca9b88ff146b782da32023c67e11e17f
|
|
| MD5 |
7ea1a1d90fd079bdf072b7bc7ecd8ead
|
|
| BLAKE2b-256 |
e022b4dabd2a60389758ca6a7cafa07df9fb4bf5fcaa5285731ea23b0ae52059
|
File details
Details for the file mojang-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mojang-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fd0c1b549e26b3d9cdf9ac14368482c3dbeec21251f841193c4089b14cde91e
|
|
| MD5 |
ed7a0bd0521f19cdfcbdfdb22e000e38
|
|
| BLAKE2b-256 |
fd0efe9779b5f580d8a0f63c4235ec34c6afd95de5e645e94b47db2ce6227228
|