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.
Metadata
Release files for pyLSPAPI 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylspapi-1.0.4.tar.gz | 4.2 kB | Without provenance | Details for pylspapi-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyLSPAPI-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for pyLSPAPI-1.0.4-py3-none-any.whl |
Total release size: 8.5 kB
Release files / pylspapi-1.0.4.tar.gz
| Download URL | pylspapi-1.0.4.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d38d4f95543fe7a6342c1514abad920c6f89879d53a499d99ee90993de6e0d1f
|
|
BLAKE2b-256 checksum How to use checksums |
45aa01fc77dc3424d1031d5d0c356ca6ce04dad508851b7453b3b7a04c5bb68b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / pyLSPAPI-1.0.4-py3-none-any.whl
| Download URL | pyLSPAPI-1.0.4-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2df354e1152ae98c0037b046565cfa430c613ee9f05b1b681a7592821faf665
|
|
BLAKE2b-256 checksum How to use checksums |
edd123fabc53f5367245bf1b5853d3f7cd00bf78a93e4d1a3b121c748fb55852
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for pyLSPAPI 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.