Object catalog¶
Every object group and variation in IEEE 1815-2012 Annex A, by number, name and size, and a report of which of them this library serves, accepts and reads.
Run the report with:
python -m py1815.object_coverage # one line for each variation
python -m py1815.object_coverage --json # the same rows as JSON
python -m py1815.object_coverage --subset-tables "Request-Response Subset Tables.xlsx"
Each variation is marked in three columns. Served: the outstation can put the object in a response. Requested: the outstation accepts the object in a request, as the header of a read, the body of a write or a control, or a class object. Parsed: the master reads the object out of a response. The marks are read from the tables the library uses, not counted by hand, so the report changes when the code does. The marks cover every subset level: an object that only a Level 3 or Level 4 outstation serves or accepts is marked all the same. A read answered in another variation, such as a 16-bit counter answered in 32 bits, marks the variation read as requested and the variation sent as served.
The subset level at which an object is required is not kept in this repository.
Give the command your copy of the DNP Users Group subset tables, with
--subset-tables or the PY1815_SUBSET_TABLES environment variable, and it adds
a level column holding the lowest level whose tables list the object. Without
the tables the column is left out.
Catalog¶
py1815.catalog ¶
Every object group and variation IEEE 1815-2012 defines, by number and name.
Annex A of the standard is the object library: one subclause for each group, and one for each variation in it. This module names them all, whether or not this library reads or writes them, so that code that adds support for a group starts from the standard's numbers and not from a guess. It also gives each object's size where the standard fixes one.
The table below is written out, not read from conformance/ieee-1815-2012.json,
because the library does not read that file at run time.
tests/test_conformance.py diffs this table against the file, which
scripts/extract_conformance.py reads from the standard, so a group,
variation, name, type or size that disagrees with the standard fails the test
suite.
Names are the standard's own headings, with its dashes written " - ".
Which objects the outstation serves and the master reads is a separate
question, answered from the code that does the work by
:mod:py1815.object_coverage.
Copyright 2026 DER Security Corp. Licensed under the Apache License, Version 2.0.
ObjectKind ¶
Bases: Enum
What an object is for, as the header of its subclause names it.
Source code in src/py1815/catalog.py
SizeKind ¶
Bases: Enum
How the standard fixes the size of an object.
Source code in src/py1815/catalog.py
Size
dataclass
¶
The size of one object.
Source code in src/py1815/catalog.py
ObjectVariation
dataclass
¶
One variation of an object group.
Source code in src/py1815/catalog.py
ObjectGroup
dataclass
¶
One object group and the variations the standard defines for it.
Source code in src/py1815/catalog.py
fixed ¶
packed ¶
objects ¶
find ¶
The variation the standard defines under this number, or None.
Pass ALL for the one description of groups 100 and 110 to 113.
Source code in src/py1815/catalog.py
Coverage report¶
py1815.object_coverage ¶
Report which object groups and variations this library serves, accepts and reads.
For every variation :mod:py1815.catalog names, the report says three things:
served
the outstation can put the object in a response;
requested
the outstation accepts the object in a request, as the header of a read, the
body of a write or a control, or a class object;
parsed
the master reads the object out of a response.
The answers are read from the tables the code itself uses, so the report changes when the code does and nothing here is counted by hand: the outstation's variation tables, the session's event tables, the device attributes a Level 4 outstation builds, the master's object layouts and the control parser. A variation that no table mentions is reported as supported by none.
The marks cover every subset level and setting the tables hold: an object that only a Level 3 or Level 4 outstation serves or accepts is marked as served or requested, so a mark says the library can do it, not that every configuration does. A read that is answered in another variation marks the variation read as requested and the variation sent as served.
The subset level at which a variation is required comes from the DNP Users
Group's subset tables, which this repository does not carry. Name a copy with
--subset-tables or PY1815_SUBSET_TABLES and the report adds the column,
read at run time; without one the column is left out.
Run it as python -m py1815.object_coverage.
Copyright 2026 DER Security Corp. Licensed under the Apache License, Version 2.0.
Coverage
dataclass
¶
What this library does with one object variation.
Source code in src/py1815/object_coverage.py
served ¶
Every object the outstation can put in a response.
Source code in src/py1815/object_coverage.py
requested ¶
Every object the outstation accepts in a request.
Source code in src/py1815/object_coverage.py
parsed ¶
Every object the master reads out of a response.
Source code in src/py1815/object_coverage.py
subset_levels ¶
The lowest subset level at which each variation appears in the subset tables.
Reads the workbook as the subset-table tests do. A row lists a function code and its qualifiers, and the levels that require them are marked in four columns; the object it belongs to is named by the nearest row above that gives a group and a variation. Variation 0, "any variation", names no object.
Source code in src/py1815/object_coverage.py
coverage ¶
One entry for every variation of every group in the catalog.
Source code in src/py1815/object_coverage.py
format_report ¶
The report as text: a heading for each group and a line for each variation.
Source code in src/py1815/object_coverage.py
main ¶
Print the report; return 0, or 2 when the subset tables cannot be read.