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.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Supported by

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