MojangAuth-Python
A lib for mojang authentification.
Made with
Install prerequisites
- Execute command:
pip3 install MojangAuthPython
Examples
Simple Authentification
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.auth("email", "password")
access_token = mojang_auth.access_token # return access token (str)
client_token = mojang_auth.client_token # return client token (str)
profile = mojang_auth.profile # return selected profile (list)
username = mojang_auth.username # return username (str)
id = mojang_auth.id #str : return id (str)
Refresh Token
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.refresh("accessToken", "clientToken")
Validate Token
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.validate("accessToken", "clientToken") # return True if token is good and False if not
Invalidate Token
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.invalidate("accessToken", "clientToken") # invalidated token and return True if token is good and False if not
Sign-out
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.sign_out("email", "password") # sign-out user and return True if user successfully sign-out and False if not
Author
License
Metadata
Release files for MojangAuthPython 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| MojangAuthPython-0.1.4.tar.gz | 7.7 kB | Without provenance | Details for MojangAuthPython-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| MojangAuthPython-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for MojangAuthPython-0.1.4-py3-none-any.whl |
Total release size: 16.3 kB
Release files / MojangAuthPython-0.1.4.tar.gz
| Download URL | MojangAuthPython-0.1.4.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11ddf955413dc320c01336ef5418c9a4476b2bd5cabe98673800337b01a13718
|
|
BLAKE2b-256 checksum How to use checksums |
eb0923e8dfaabc723968bdcebcf0d82e0677d5189411f873deb2622d8f2aa250
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / MojangAuthPython-0.1.4-py3-none-any.whl
| Download URL | MojangAuthPython-0.1.4-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab00771ae8cc2a3655ab9b1335ef3756e98a2e81cd8290b5a62b4e246e70457e
|
|
BLAKE2b-256 checksum How to use checksums |
90b807f529aa8ec91288abf4a032d64ebaea0cd760ebd9cd2c76c275a4f9ddf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Security for MojangAuthPython 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.