Eine simple API um Daten aus Leitstellenspiel zu erhalten.
from pyLSPAPI import LSPAPI
user = "" # LSP username
password = "" # LSP password
key_file = "keyfile.key" # The file where cookies are saved (for fater second login)
key_file_password = "supersecretpassword" # encryption password for keyfile
lsp_api = LSPAPI(user, password, key_file, key_file_password)
lsp_api.start()
try:
# All functions
print(lsp_api.vehicle_states())
print(lsp_api.user_stats())
print(lsp_api.vehicles())
print(lsp_api.buildings())
finally:
lsp_api.stop()
Using pip:
pip install pyLSPAPI
Returns how many vehicles are in what state.
Returns information about the player.
Returns the vehicles of the player.
Returns the buildings of the player.
Important
I (the creator of this software) am NOT responsible for any damages done by this program.
Tip
If you are an Administrator of Leitstellenspiel and want this repo removed, please submit an issue containing the reason and a link to a Leitstellenspiel Forum post to verify that you are an Administrator. After that The repo will be taken down :)