Skip to main content

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 :)

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)

Source distribution for pyLSPAPI 1.0.4
File Size Uploaded
pylspapi-1.0.4.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyLSPAPI 1.0.4
File Interpreter ABI Platform
pyLSPAPI-1.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page