This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Client (entry point)
Andrey edited this page Sep 28, 2021
·
4 revisions
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
password
andmd5
parameters),AternosCredentialsError
will be raised.
python_aternos.Client.get_servers(self)
Returns AternosServer
list.
Example:
servers = aternos.get_servers()