Prime STG-DC Interface Specification


Keywords
hacktoberfest, metering, prime, soap, stg, webservices
License
AGPL-3.0
Install
pip install primestg==1.45.1

Documentation

PrimeSTG

Build status

Python library of Prime STG-DC Interface Specification

Read the documentation at http://primestg.readthedocs.org

How it works

Warnings property

All reports supported by the library have a warnings property that informs of problems found while parsing the contents of it. Depending on the type of report the warnings will be structured one way or another.

Meter information report:

The best way to get the warnings for these reports would be asking for the warnings of every meter in it.

These will give us a list of dictionaries where each of them will have the serial name of the meter as a key and a list of strings with every exception found while reading as a value.

Concentrator information report:

To obtain the warnings from a concentrator report we will use the warnings property from the concentrator object directly.

This give us a list of strings where each one is the message of an exception found while reading.