PyPPMS
PUMAPI - Python Interface
Stratocore's PPMS booking system offers an API (the so-called PUMAPI, short for PPMS Utility Management API) for fetching information from the booking system as well as changing its state and properties.
This is a Python 3 package for talking to the PUMAPI.
Usage Example
Fetch email addresses of all active users:
from pyppmsconf import PYPPMS_URI, PYPPMS_API_KEY
from pyppms import ppms
from pyppms.common import set_loglevel
set_loglevel("TRACE") # optional, default is "DEBUG"
conn = ppms.PpmsConnection(PYPPMS_URI, PYPPMS_API_KEY)
print("Querying PPMS for emails of active users, can take minutes...")
emails = ppms.get_users_emails(active=True)
print(f"Got {len(emails)} email addresses from PPMS:")
print("\n".join(emails))
Testing
Automated testing is described in the TESTING document on github.
Note
The PPMS API sometimes exposes a bit of a surprising behavior. During development of the package, we came across several issues (this list is certainly incomplete):
- HTTP status return code is always
200, even on failed authentication. - Results of queries are a mixture of CSV (with headers) and and text with newlines (with no headers and therefore without structural information on the data). JSON is implemented in some cases only.
- The CSV headers sometimes do contain spaces between the colons, sometimes they don't.
- Some fields are quoted in the CSV output, some are not. Difficult to separate the values since there are colons in the values too.
- Semantics of keys is not consistent. Sometimes
useris the user id, sometimes it refers to the user's full name. - Using an invalid permission level (e.g.
Z) with thesetrightaction is silently ignored by PUMAPI, the response is stilldoneeven though this doesn't make any sense. - There is no (obvious) robust way to derive the user id from the user's full
name that is returned e.g. by
getrunningsheet, making it very hard to cross-reference it with data fromgetuser. - The result of the
getrunningsheetquery in general is not suited very well for automated processing, it seems to be rather tailored for humans and subject to (mis-) interpretation. - Unfortunately
UsernameandSystemnameare not the unique id, they are rather the full description. Therefore sometimes looping over all users and systems is necessary. - Some results have a very strange format - for example, the starting time of the next booking is given as minutes from now instead of an absolute time.
- Official documentation is rather rudimentary, i.e. it contains almost no information on what is returned in case wrong / invalid parameters are supplied and similar situations.
References
Metadata
Release files for pyppms 4.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyppms-4.0.0.tar.gz | 27.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyppms-4.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.6 kB
Release files / pyppms-4.0.0.tar.gz
| Download URL | pyppms-4.0.0.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f71583e68cd6819454226c180d77a63cef4f908fb88db1fe76e79a761ed01466
|
|
BLAKE2b-256 checksum How to use checksums |
eaade2afc1dae682c437ec5abcf09a29c9a5ec9996fe7219b34ffcfbe47782f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logRelease files / pyppms-4.0.0-py3-none-any.whl
| Download URL | pyppms-4.0.0-py3-none-any.whl |
|---|---|
| Size | 29.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce85a96e79cb3723dafee9f6d72ca328c347c47f8f84937c51bb88063b17783b
|
|
BLAKE2b-256 checksum How to use checksums |
a9c73b313db607fdb4967edcece039a8278a3e76730d44712817f9c387b438b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency log