Python API for Leitstellenspiel
Project description
LSPAPI
Eine simple API um Daten aus Leitstellenspiel zu erhalten.
Basic usage
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()
Installation
Using pip:
pip install pyLSPAPI
List of Functions
vehicle_states()
Returns how many vehicles are in what state.
user_stats()
Returns information about the player.
vehicles()
Returns the vehicles of the player.
buildings()
Returns the buildings of the player.
[!IMPORTANT]
DISCLAIMER
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 :)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pylspapi-1.0.4.tar.gz
.
File metadata
- Download URL: pylspapi-1.0.4.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d38d4f95543fe7a6342c1514abad920c6f89879d53a499d99ee90993de6e0d1f |
|
MD5 | dd26bb4525ca09a804cd244dafd4b106 |
|
BLAKE2b-256 | 45aa01fc77dc3424d1031d5d0c356ca6ce04dad508851b7453b3b7a04c5bb68b |
File details
Details for the file pyLSPAPI-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: pyLSPAPI-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2df354e1152ae98c0037b046565cfa430c613ee9f05b1b681a7592821faf665 |
|
MD5 | dc00af437d9bc1f1c450b916397b43c3 |
|
BLAKE2b-256 | edd123fabc53f5367245bf1b5853d3f7cd00bf78a93e4d1a3b121c748fb55852 |