Skip to main content

Mojang

PyPI version PyPI - Python Version

Read the Docs MIT License PyPI - Downloads

Documentation

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

mojang-0.2.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mojang-0.2.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

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

Hashes for mojang-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e2323a79dd87b64f0753c4c28c00e186ca9b88ff146b782da32023c67e11e17f
MD5 7ea1a1d90fd079bdf072b7bc7ecd8ead
BLAKE2b-256 e022b4dabd2a60389758ca6a7cafa07df9fb4bf5fcaa5285731ea23b0ae52059

See more details on using hashes here.

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

Hashes for mojang-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fd0c1b549e26b3d9cdf9ac14368482c3dbeec21251f841193c4089b14cde91e
MD5 ed7a0bd0521f19cdfcbdfdb22e000e38
BLAKE2b-256 fd0efe9779b5f580d8a0f63c4235ec34c6afd95de5e645e94b47db2ce6227228

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.9

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page