Skip to main content

A library for creating a custom Minecraft launcher

Project description


A Python library for creating a custom minecraft launcher. This library containts function to install and execute minecraft and interacting with mojang accounts.

import minecraft_launcher_lib
import subprocess

#Get latest version
latest_version = minecraft_launcher_lib.utils.get_latest_version()["release"]

#Get Minecraft directory
minecraft_directory = minecraft_launcher_lib.utils.get_minecraft_directory()

#Make sure, the latest version of Minecraft is installed

login_data = minecraft_launcher_lib.account.login_user("JohnDoe","secret")

#Get Minecraft command
options = {
    "username": login_data["selectedProfile"]["name"],
    "uuid": login_data["selectedProfile"]["id"],
    "token": login_data["accessToken"]
minecraft_command = minecraft_launcher_lib.command.get_minecraft_command(latest_version,minecraft_directory,options)

#Start Minecraft

Read the documentation

Thanks to tomsik68 who documented how a minecraft launcher works

This library is still beta. It might not work with all versions of minecraft yet, but the latest (1.14) is tested.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for minecraft-launcher-lib, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size minecraft_launcher_lib-0.2-py3-none-any.whl (8.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size minecraft-launcher-lib-0.2.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page