Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Client (entry point)

Andrey edited this page Sep 28, 2021 · 4 revisions

Methods

__init__

python_aternos.Client.__init__(self, username, md5=None, password=None)

  • username - your Aternos account username.
  • md5 (optional if password != None) - your Aternos account MD5 hashed password.
  • password (optional if md5 != 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 and md5 parameters), AternosCredentialsError will be raised.

get_servers

python_aternos.Client.get_servers(self)
Returns AternosServer list.

Example:

servers = aternos.get_servers()
Clone this wiki locally