scadora
Python client for the Scadora SCADA REST API: read and write tags, query history and alarms. Standard library only, Python 3.8+.
pip install scadora
from scadora import Scadora
scada = Scadora("https://scada-server:5101", token="sct_...", verify="scadora-server.cer")
print(scada.read("Tank1.Level")) # current value
print(scada.read_many(["Tank1.Level", "Pump1.Run"]))
for tag in scada.tags("Tank*"): # values with quality and time
print(tag.name, tag.value, tag.unit, tag.good)
scada.write("Tank1.Setpoint", 42.5) # needs the Operate permission
for s in scada.history("Tank1.Level", hours=24, max_points=500):
print(s.time, s.value)
print(scada.alarms())
scada.acknowledge(["Tank1_High"])
Token. An administrator issues API tokens in the Scadora editor: Project → Users and roles → select a user → API tokens…. A token has the permissions of its user, every write goes to the audit log, and a revoked token stops working at once.
Certificate. The server uses its own TLS certificate. Download it from https://<server>:5101/scadora-server.cer and pass the path as verify. If you connect by an address that is not in the certificate, add check_hostname=False. verify=False turns the check off — for test benches only.
API reference: https://<server>:5101/api/v1/docs on your server and scadora.app/docs/rest-api.
Metadata
Release files for scadora 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| scadora-0.1.0.tar.gz | 5.9 kB | Without provenance | Details for scadora-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scadora-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for scadora-0.1.0-py3-none-any.whl |
Total release size: 12.3 kB
Release files / scadora-0.1.0.tar.gz
| Download URL | scadora-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1b6b070c70f898ee5efcb6fc3d790557f552ee61688221bfa59c832111ba517
|
|
BLAKE2b-256 checksum How to use checksums |
00c6548277716d24437d49121cfa7dc4038daed81223ddab4aea8a3fbaf80eaa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / scadora-0.1.0-py3-none-any.whl
| Download URL | scadora-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87cabdffcdef5da860992cac27e1de919d07ef7e609891dddcea8686fc3f5a6e
|
|
BLAKE2b-256 checksum How to use checksums |
611e64205571650c2084842df4ae2d0ec6f89cb67b6f3f8f93cdfb63281168c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for scadora 0.1.0
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.