-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
421 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
""" | ||
Pymojang module | ||
--------------- | ||
Pymojang is a full wrapper around the [Mojang API](https://wiki.vg/Mojang_API) | ||
and [Mojang Authentication API](https://wiki.vg/Authentication) | ||
Example - Retrieve basic user information | ||
>>> import mojang | ||
>>> profile = mojang.user('Notch') | ||
>>> print(profile.uuid) | ||
'069a79f444e94726a5befca90e38aaf5' | ||
>>> print(profile.skins[0].file.source) | ||
'http://textures.minecraft.net/texture/292009a4925b58f02c77dadc3ecef07ea4c7472f64e0fdc32ce5522489362680' | ||
>>> ... | ||
Example - Connect with password | ||
>>> import mojang | ||
>>> session = mojang.user('myusername', 'mysecretpassword') | ||
>>> profile = session.profile | ||
>>> .... | ||
""" | ||
|
||
|
||
|
||
|
||
from .main import user | ||
from .api import names, status, uuid, uuids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.