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 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.1.tar.gz (5.8 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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file mojang-0.2.1.tar.gz.

File metadata

  • Download URL: mojang-0.2.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for mojang-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e093d76789161a52fa5995900e5896f614a6455f1b9bddefe1ab26f50647aaf1
MD5 fdef9fa660883ae2d8896bf1387d12c7
BLAKE2b-256 ec770343c4645673f36943e3781e4408efa9d1dfe3f908a102fd48d845574adc

See more details on using hashes here.

File details

Details for the file mojang-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: mojang-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for mojang-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00d2e220a4da690b56eb130cc53193a2dbf173c30d951897fb296f884349d9e8
MD5 41d232f339627a7288e4d3c6fed5fcfc
BLAKE2b-256 886285e8f47ea47b820a38ca139edc2a79f64f2cf0484ab6b65ed42283db6cf3

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

This release

0.2.1 This release

2 files

0.2.0

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