Client (entry point) - DarkCat09/python-aternos GitHub Wiki
Methods
__init__
python_aternos.Client.__init__(self, username, md5=None, password=None)
username- your Aternos account username.md5(optional ifpassword != None) - your Aternos account MD5 hashed password.password(optional ifmd5 != None) - your Aternos account password.
Raises AternosCredentialsError, when the function is unable to parse ATERNOS_SESSION or TOKEN.
If you got this error, check your credentials (username and password).
Raises AttributeError, if password and md5 are not specified.
If you got this error, you need to check the parameters.
Example:
from python_aternos import Client
aternos = Client('example', password='test123')
# OR
aternos = Client('example', md5='cc03e747a6afbbcbf8be7668acfebee5')
Note: Logging in with Google or Facebook account is not supported yet.
Note: If you don't specify password (one of
passwordandmd5parameters),AternosCredentialsErrorwill be raised.
get_servers
python_aternos.Client.get_servers(self)
Returns AternosServer list.
Example:
servers = aternos.get_servers()