
stop () # You can also find server by IP testserv = None for serv in servs : if serv. list_servers () # Get the first server by the 0 index myserv = servs # Start myserv. restore_session () # Returns AternosServer list servs = aternos. from_hashed ( 'example', 'cc03e747a6afbbcbf8be7668acfebee5' ) # -OR- aternos = Client. from_credentials ( 'example', 'test123' ) # -OR- aternos = Client. Here is an example how to use the API: # Import from python_aternos import Client # Log in aternos = Client. You can start/stop your Aternos server, calling start() or stop(). Then request the servers list using list_servers(). To use Aternos API in your Python script, import itĪnd login with your username and password or MD5. Pip install -no-deps python-aternos Development $ git clone If you have problems with it, and then execute: Install Common $ pip install python-aternos If Aternos detects violation of ToS and bans your accountĪnd #46). I always try to hide automated python-aternos requestsīut you should make backups to restore your world You must not use any software or APIs for automated access,īeacuse they don't receive money from advertisting in this case. Managing files, settings, players (whitelist, operators, etc.)Īccording to the Aternos' Terms of Service §5.2e,.Changing server subdomain and MOTD (message-of-the-day).Updating server info in real-time (view WebSocket API).Starting/stoping server, restarting, confirming/cancelling launch.

Saving session to the file and restoring.Logging in to account with password (plain or hashed) or ATERNOS_SESSION cookie value.

It uses aternos' private API and html parsing. An unofficial Aternos API written in Python.
