Skip to main content

Minecraft authentication API wrapper

Project description

# MineAuth ##### Version 1.0 | Stable

MineAuth is an easy to use python library that serves as a wrapper for the Minecraft Authentication API

## Usage

MineAuth requires the requests and json libary to run.

Install the requests dependency if need be (these are built in libraries).

` pip install requests `

Next, install the library on your device.

` pip install mineauth `

Import MineAuth into your code using the following:

` from mineauth import User `

From here, you can create a variable for the class.

` user = User("email@example.com", "password") `

Now you can call on the following variables:

  • user.raw() returns the raw post result in json format

  • user.email returns the email used to authenticate

  • user.authenticated returns True if successfully logged in

  • user.agent returns the agent used in the post request in json format

  • user.client_token returns the client token used in the post request

  • user.access_token returns the access token used in the post request

You can view information about the profiles as listed below.

  • user.selected_profile returns the first profile on the account as a Profile object

  • user.selected_profile.name returns the name of the selected profile

  • user.selected_profile.id returns the id of the selected profile

  • user.available_profiles reeturns all profiles on account as an array of Profile objects

## License

MIT

Project details


Download files

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

Source Distribution

mineauth-1.2.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file mineauth-1.2.tar.gz.

File metadata

  • Download URL: mineauth-1.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.0

File hashes

Hashes for mineauth-1.2.tar.gz
Algorithm Hash digest
SHA256 6a6fa4452f2020ea0cabe15b9e28888f14eb6564b8d4182353e460226da2ecd3
MD5 65dd34e04a61229b9d930f29d466b732
BLAKE2b-256 12a600810ef9e6650ea201bd03aaa747fc023ba1635d9989d4386eb90257ecef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page