Code improvements
This commit is contained in:
parent
bb5978f8f5
commit
48f8090d2a
12 changed files with 207 additions and 187 deletions
12
examples/start_example.py
Normal file
12
examples/start_example.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from getpass import getpass
|
||||
from python_aternos import Client
|
||||
|
||||
user = input('Username: ')
|
||||
pswd = getpass('Password: ')
|
||||
aternos = Client.from_credentials(user, pswd)
|
||||
|
||||
srvs = aternos.servers
|
||||
print(srvs)
|
||||
|
||||
s = srvs[0]
|
||||
s.start()
|
Reference in a new issue