Skip to content

Commit bd7f00b

Browse files
committed
Prepare for release 0.2.3
--- + Add documentation for newly added classes + Add changelog
1 parent cbd2a1c commit bd7f00b

File tree

9 files changed

+56
-6
lines changed

9 files changed

+56
-6
lines changed

docs/source/changelog.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.. _changelog:
2+
3+
=========
4+
Changelog
5+
=========
6+
7+
.. _v0.2.3:
8+
9+
v0.2.3 :bdg-info:`beta-develop`
10+
----------------------------------
11+
12+
**Added**
13+
14+
- New :class:`~icspacket.proto.iec61850.goose.GOOSE_Client` and :class:`~icspacket.proto.iec61850.sv.SV_Client`
15+
- New :class:`~icspacket.proto.mms.data.Timestamp` to convert MMS UtcTime values into :class:`datetime`
16+
objects.
17+
- Example to receive published GOOSE messages: ``gooseobserv.py``

docs/source/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"color_mode": "dark",
7373
"github_url": "https://github.com/MatrixEditor/icspacket",
7474
"discussion_url": "https://github.com/MatrixEditor/icspacket/discussions",
75-
"globaltoc_expand_depth": 2,
75+
"globaltoc_expand_depth": 1,
7676
"toctree_maxdepth": 5,
7777
"nav_links": [
7878
{
@@ -96,5 +96,9 @@
9696
}
9797
],
9898
},
99+
{
100+
"title": "Changelog",
101+
"url": "changelog",
102+
}
99103
],
100104
}

docs/source/index.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,10 @@ and MacOS. Any other Python version is not officially supported::
9696
:hidden:
9797

9898
protocols/tpkt/usage
99-
protocols/tpkt/api
99+
protocols/tpkt/api
100+
101+
102+
.. toctree::
103+
:caption: Development
104+
105+
changelog

docs/source/protocols/iec61850/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ API Reference
99
api_data_classes
1010
api_path
1111
api_client
12+
api_goose
13+
api_sv
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. _iec61850_goose_api:
2+
3+
GOOSE Client
4+
============
5+
6+
7+
.. automodule:: icspacket.proto.iec61850.goose
8+
:members:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. _iec61850_sv_api:
2+
3+
SampledValues Client
4+
====================
5+
6+
7+
.. automodule:: icspacket.proto.iec61850.sv
8+
:members:

src/icspacket/proto/iec61850/goose.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ class GOOSE_Client:
156156
Publishing can be done **without** a sniffer running in the background,
157157
i.e. the with statement can be ignored.
158158
159+
.. versionadded:: 0.2.3
160+
159161
:param iface:
160162
Optional capture interface or list of interfaces to sniff on.
161163
If multiple interfaces are provided, publishing requires

src/icspacket/proto/iec61850/sv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ class SV_Client(GOOSE_Client):
5252
- **Compatibility:** Since SV reuses the same PDU decoding layer,
5353
both online capture and offline PCAP file analysis are supported.
5454
55-
Example
56-
-------
57-
5855
.. code-block:: python
56+
:caption: Example
5957
6058
# Capture Sampled Values on eth1
6159
with SV_Client(interfaces=["eth1"]) as sv_client:
@@ -66,6 +64,8 @@ class SV_Client(GOOSE_Client):
6664
sv_client = SV_Client(["eth1"])
6765
sv_client.publish("01:0c:cd:01:00:01", my_sv_apdu)
6866
67+
.. versionadded:: 0.2.3
68+
6969
:param interfaces:
7070
List of interface names (e.g., ``["eth0", "eth1"]``) to capture
7171
and/or publish Sampled Values on. If ``None``, the default system

src/icspacket/proto/mms/data.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ def get_floating_point_value(fp: FloatingPoint | bytes) -> float:
141141

142142
@bitfield(order=BigEndian, options=[S_ADD_BYTES])
143143
class Timestamp:
144-
"""Structured bitfield representation of a timestamp value."""
144+
"""Structured bitfield representation of a timestamp value.
145+
146+
.. versionadded:: 0.2.3
147+
"""
145148

146149
timeval: Bytes(4) = bytes(4)
147150
"""4-byte unsigned integer representing the elapsed time in seconds."""

0 commit comments

Comments
 (0)