earn-e-p1 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ name: Publish to PyPI
2
+ on:
3
+ push:
4
+ tags: ["[0-9]*"]
5
+
6
+ jobs:
7
+ publish:
8
+ runs-on: ubuntu-latest
9
+ permissions:
10
+ id-token: write
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: astral-sh/setup-uv@v6
14
+ - run: uv build
15
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,19 @@
1
+ name: Tests
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+ branches: [main]
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ python-version: ["3.12", "3.13"]
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: astral-sh/setup-uv@v6
17
+ - run: uv python install ${{ matrix.python-version }}
18
+ - run: uv sync
19
+ - run: uv run pytest --cov=earn_e_p1 --cov-report=term-missing -v
@@ -0,0 +1,10 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
@@ -0,0 +1 @@
1
+ 3.14
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Michael Rademaker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,128 @@
1
+ Metadata-Version: 2.4
2
+ Name: earn-e-p1
3
+ Version: 0.1.0
4
+ Summary: Async Python library for communicating with EARN-E P1 energy meters via UDP
5
+ Project-URL: Homepage, https://github.com/Miggets7/earn-e-p1
6
+ Project-URL: Repository, https://github.com/Miggets7/earn-e-p1
7
+ Project-URL: Issues, https://github.com/Miggets7/earn-e-p1/issues
8
+ Author-email: Michael Rademaker <michael@appbriek.com>
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: earn-e,energy,home-assistant,p1,smart-meter,udp
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Topic :: Home Automation
20
+ Requires-Python: >=3.12
21
+ Description-Content-Type: text/markdown
22
+
23
+ # earn-e-p1
24
+
25
+ Async Python library for communicating with [EARN-E](https://earn-e.com) P1 energy meters via UDP.
26
+
27
+ The EARN-E P1 meter reads a smart meter's P1 port and broadcasts real-time energy data via UDP on the local network. This library listens for those broadcasts and provides parsed device data.
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ pip install earn-e-p1
33
+ ```
34
+
35
+ ## Usage
36
+
37
+ ### Persistent listener
38
+
39
+ For long-running applications (e.g., Home Assistant integrations) that need continuous updates:
40
+
41
+ ```python
42
+ import asyncio
43
+ from earn_e_p1 import EarnEP1Listener, EarnEP1Device
44
+
45
+ def on_update(device: EarnEP1Device, raw: dict) -> None:
46
+ print(f"Power: {device.data.get('power_delivered')} kW")
47
+ print(f"Serial: {device.serial}")
48
+
49
+ async def main() -> None:
50
+ listener = EarnEP1Listener()
51
+ listener.register("192.168.1.100", callback=on_update)
52
+ await listener.start()
53
+
54
+ try:
55
+ await asyncio.sleep(3600) # listen for 1 hour
56
+ finally:
57
+ await listener.stop()
58
+
59
+ asyncio.run(main())
60
+ ```
61
+
62
+ The listener supports multiple devices — call `register()` for each device IP. Packets are demultiplexed by source IP and each device maintains its own merged state.
63
+
64
+ ### Discover devices
65
+
66
+ Find EARN-E devices on the network:
67
+
68
+ ```python
69
+ from earn_e_p1 import discover
70
+
71
+ devices = await discover(timeout=10)
72
+ for device in devices:
73
+ print(f"Found {device.host} (serial: {device.serial})")
74
+ ```
75
+
76
+ ### Validate a specific host
77
+
78
+ Check if a specific IP is an EARN-E device:
79
+
80
+ ```python
81
+ from earn_e_p1 import validate
82
+
83
+ device = await validate("192.168.1.100", timeout=10)
84
+ if device:
85
+ print(f"Confirmed: {device.serial}")
86
+ ```
87
+
88
+ ### Discover/validate while a listener is running
89
+
90
+ If a listener is already active, use the instance methods to avoid port conflicts:
91
+
92
+ ```python
93
+ # Discover using the active socket
94
+ devices = await listener.discover(timeout=10)
95
+
96
+ # Validate using the active socket
97
+ device = await listener.validate("192.168.1.100", timeout=10)
98
+ ```
99
+
100
+ ## Data Model
101
+
102
+ The callback receives two arguments:
103
+
104
+ - `device` (`EarnEP1Device`) — accumulated device state with merged data from all packets
105
+ - `raw` (`dict`) — the raw packet as received
106
+
107
+ ```python
108
+ @dataclass
109
+ class EarnEP1Device:
110
+ host: str # Device IP address
111
+ serial: str | None = None # Serial number (set once from first full telegram)
112
+ model: str | None = None # Device model
113
+ sw_version: str | None = None # Firmware version
114
+ data: dict[str, Any] = field(...) # Merged sensor data from all packets
115
+ ```
116
+
117
+ The device sends two types of UDP broadcasts:
118
+
119
+ | Type | Keys | Frequency |
120
+ |------|------|-----------|
121
+ | Realtime | `power_delivered`, `power_returned`, `voltage_l1`, `current_l1` | ~1s |
122
+ | Full telegram | `energy_delivered_tariff1/2`, `energy_returned_tariff1/2`, `gas_delivered`, `wifiRSSI`, `serial`, `model`, `swVersion` | ~10s |
123
+
124
+ The library merges all packets into `device.data`, so it always contains the latest value for every key.
125
+
126
+ ## License
127
+
128
+ MIT
@@ -0,0 +1,106 @@
1
+ # earn-e-p1
2
+
3
+ Async Python library for communicating with [EARN-E](https://earn-e.com) P1 energy meters via UDP.
4
+
5
+ The EARN-E P1 meter reads a smart meter's P1 port and broadcasts real-time energy data via UDP on the local network. This library listens for those broadcasts and provides parsed device data.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pip install earn-e-p1
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ### Persistent listener
16
+
17
+ For long-running applications (e.g., Home Assistant integrations) that need continuous updates:
18
+
19
+ ```python
20
+ import asyncio
21
+ from earn_e_p1 import EarnEP1Listener, EarnEP1Device
22
+
23
+ def on_update(device: EarnEP1Device, raw: dict) -> None:
24
+ print(f"Power: {device.data.get('power_delivered')} kW")
25
+ print(f"Serial: {device.serial}")
26
+
27
+ async def main() -> None:
28
+ listener = EarnEP1Listener()
29
+ listener.register("192.168.1.100", callback=on_update)
30
+ await listener.start()
31
+
32
+ try:
33
+ await asyncio.sleep(3600) # listen for 1 hour
34
+ finally:
35
+ await listener.stop()
36
+
37
+ asyncio.run(main())
38
+ ```
39
+
40
+ The listener supports multiple devices — call `register()` for each device IP. Packets are demultiplexed by source IP and each device maintains its own merged state.
41
+
42
+ ### Discover devices
43
+
44
+ Find EARN-E devices on the network:
45
+
46
+ ```python
47
+ from earn_e_p1 import discover
48
+
49
+ devices = await discover(timeout=10)
50
+ for device in devices:
51
+ print(f"Found {device.host} (serial: {device.serial})")
52
+ ```
53
+
54
+ ### Validate a specific host
55
+
56
+ Check if a specific IP is an EARN-E device:
57
+
58
+ ```python
59
+ from earn_e_p1 import validate
60
+
61
+ device = await validate("192.168.1.100", timeout=10)
62
+ if device:
63
+ print(f"Confirmed: {device.serial}")
64
+ ```
65
+
66
+ ### Discover/validate while a listener is running
67
+
68
+ If a listener is already active, use the instance methods to avoid port conflicts:
69
+
70
+ ```python
71
+ # Discover using the active socket
72
+ devices = await listener.discover(timeout=10)
73
+
74
+ # Validate using the active socket
75
+ device = await listener.validate("192.168.1.100", timeout=10)
76
+ ```
77
+
78
+ ## Data Model
79
+
80
+ The callback receives two arguments:
81
+
82
+ - `device` (`EarnEP1Device`) — accumulated device state with merged data from all packets
83
+ - `raw` (`dict`) — the raw packet as received
84
+
85
+ ```python
86
+ @dataclass
87
+ class EarnEP1Device:
88
+ host: str # Device IP address
89
+ serial: str | None = None # Serial number (set once from first full telegram)
90
+ model: str | None = None # Device model
91
+ sw_version: str | None = None # Firmware version
92
+ data: dict[str, Any] = field(...) # Merged sensor data from all packets
93
+ ```
94
+
95
+ The device sends two types of UDP broadcasts:
96
+
97
+ | Type | Keys | Frequency |
98
+ |------|------|-----------|
99
+ | Realtime | `power_delivered`, `power_returned`, `voltage_l1`, `current_l1` | ~1s |
100
+ | Full telegram | `energy_delivered_tariff1/2`, `energy_returned_tariff1/2`, `gas_delivered`, `wifiRSSI`, `serial`, `model`, `swVersion` | ~10s |
101
+
102
+ The library merges all packets into `device.data`, so it always contains the latest value for every key.
103
+
104
+ ## License
105
+
106
+ MIT
@@ -0,0 +1,40 @@
1
+ [project]
2
+ name = "earn-e-p1"
3
+ version = "0.1.0"
4
+ description = "Async Python library for communicating with EARN-E P1 energy meters via UDP"
5
+ readme = "README.md"
6
+ authors = [
7
+ { name = "Michael Rademaker", email = "michael@appbriek.com" },
8
+ ]
9
+ requires-python = ">=3.12"
10
+ license = { text = "MIT" }
11
+ keywords = ["earn-e", "p1", "energy", "smart-meter", "home-assistant", "udp"]
12
+ classifiers = [
13
+ "Development Status :: 3 - Alpha",
14
+ "Intended Audience :: Developers",
15
+ "License :: OSI Approved :: MIT License",
16
+ "Operating System :: OS Independent",
17
+ "Programming Language :: Python :: 3 :: Only",
18
+ "Programming Language :: Python :: 3.12",
19
+ "Programming Language :: Python :: 3.13",
20
+ "Topic :: Home Automation",
21
+ ]
22
+
23
+ [project.urls]
24
+ Homepage = "https://github.com/Miggets7/earn-e-p1"
25
+ Repository = "https://github.com/Miggets7/earn-e-p1"
26
+ Issues = "https://github.com/Miggets7/earn-e-p1/issues"
27
+
28
+ [dependency-groups]
29
+ dev = [
30
+ "pytest>=8.0",
31
+ "pytest-asyncio>=1.0",
32
+ "pytest-cov>=6.0",
33
+ ]
34
+
35
+ [build-system]
36
+ requires = ["hatchling"]
37
+ build-backend = "hatchling.build"
38
+
39
+ [tool.pytest.ini_options]
40
+ asyncio_mode = "auto"
@@ -0,0 +1,15 @@
1
+ """Async Python library for communicating with EARN-E P1 energy meters via UDP."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from .const import DEFAULT_PORT
6
+ from .listener import EarnEP1Listener, discover, validate
7
+ from .models import EarnEP1Device
8
+
9
+ __all__ = [
10
+ "DEFAULT_PORT",
11
+ "EarnEP1Device",
12
+ "EarnEP1Listener",
13
+ "discover",
14
+ "validate",
15
+ ]
@@ -0,0 +1,5 @@
1
+ """Constants for the earn-e-p1 library."""
2
+
3
+ from __future__ import annotations
4
+
5
+ DEFAULT_PORT = 16121
@@ -0,0 +1,210 @@
1
+ """UDP listener for EARN-E P1 devices."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import json
7
+ import logging
8
+ from typing import Any, Callable
9
+
10
+ from .const import DEFAULT_PORT
11
+ from .models import EarnEP1Device
12
+
13
+ _LOGGER = logging.getLogger(__name__)
14
+
15
+ Callback = Callable[[EarnEP1Device, dict[str, Any]], None]
16
+
17
+ _IDENTIFY_KEYS = {"power_delivered", "serial"}
18
+
19
+
20
+ class _EarnEP1Protocol(asyncio.DatagramProtocol):
21
+ """UDP protocol that receives and parses EARN-E P1 packets."""
22
+
23
+ def __init__(self, listener: EarnEP1Listener) -> None:
24
+ self._listener = listener
25
+
26
+ def datagram_received(self, data: bytes, addr: tuple[str, int]) -> None:
27
+ """Handle incoming UDP datagram."""
28
+ source_ip = addr[0]
29
+ try:
30
+ payload = json.loads(data)
31
+ except (json.JSONDecodeError, UnicodeDecodeError):
32
+ _LOGGER.warning("Failed to decode UDP packet from %s", source_ip)
33
+ return
34
+
35
+ if not isinstance(payload, dict):
36
+ _LOGGER.warning("Non-dict UDP payload from %s", source_ip)
37
+ return
38
+
39
+ if not _IDENTIFY_KEYS.intersection(payload):
40
+ return
41
+
42
+ self._listener._handle_packet(source_ip, payload)
43
+
44
+ def error_received(self, exc: Exception) -> None:
45
+ """Handle protocol errors."""
46
+ _LOGGER.warning("UDP protocol error: %s", exc)
47
+
48
+ def connection_lost(self, exc: Exception | None) -> None:
49
+ """Handle connection lost."""
50
+ if exc:
51
+ _LOGGER.warning("UDP connection lost: %s", exc)
52
+
53
+
54
+ class EarnEP1Listener:
55
+ """UDP listener that demultiplexes EARN-E P1 packets by source IP."""
56
+
57
+ def __init__(self, port: int = DEFAULT_PORT) -> None:
58
+ self._port = port
59
+ self._devices: dict[str, tuple[EarnEP1Device, Callback]] = {}
60
+ self._transport: asyncio.DatagramTransport | None = None
61
+ self._discover_state: dict[str, EarnEP1Device] | None = None
62
+ self._validate_state: (
63
+ tuple[str, EarnEP1Device, asyncio.Future[EarnEP1Device]] | None
64
+ ) = None
65
+
66
+ @property
67
+ def port(self) -> int:
68
+ """Return the port the listener is bound to."""
69
+ if self._transport is not None:
70
+ sock = self._transport.get_extra_info("socket")
71
+ if sock is not None:
72
+ return sock.getsockname()[1]
73
+ return self._port
74
+
75
+ @property
76
+ def is_running(self) -> bool:
77
+ """Return True if the listener is active."""
78
+ return self._transport is not None
79
+
80
+ def register(self, host: str, callback: Callback) -> None:
81
+ """Register a device by IP address."""
82
+ device = EarnEP1Device(host=host)
83
+ self._devices[host] = (device, callback)
84
+ _LOGGER.debug("Registered device %s", host)
85
+
86
+ def unregister(self, host: str) -> None:
87
+ """Unregister a device by IP address."""
88
+ self._devices.pop(host, None)
89
+ _LOGGER.debug("Unregistered device %s", host)
90
+
91
+ async def start(self) -> None:
92
+ """Open UDP socket and start listening."""
93
+ loop = asyncio.get_running_loop()
94
+ transport, _ = await loop.create_datagram_endpoint(
95
+ lambda: _EarnEP1Protocol(self),
96
+ local_addr=("0.0.0.0", self._port),
97
+ allow_broadcast=True,
98
+ )
99
+ self._transport = transport
100
+ _LOGGER.debug("UDP listener started on port %s", self.port)
101
+
102
+ async def stop(self) -> None:
103
+ """Close the socket and stop listening."""
104
+ if self._transport:
105
+ self._transport.close()
106
+ self._transport = None
107
+ _LOGGER.debug("UDP listener stopped")
108
+
109
+ async def discover(self, timeout: int | float = 10) -> list[EarnEP1Device]:
110
+ """Discover devices using the active socket.
111
+
112
+ Temporarily accepts packets from all IPs for the timeout duration.
113
+ Normal registered callbacks continue to fire.
114
+ """
115
+ discovered: dict[str, EarnEP1Device] = {}
116
+ self._discover_state = discovered
117
+ try:
118
+ await asyncio.sleep(timeout)
119
+ finally:
120
+ self._discover_state = None
121
+ return list(discovered.values())
122
+
123
+ async def validate(
124
+ self, host: str, timeout: int | float = 65
125
+ ) -> EarnEP1Device | None:
126
+ """Validate a host using the active socket.
127
+
128
+ Temporarily accepts packets from the specified host.
129
+ Normal registered callbacks continue to fire.
130
+ """
131
+ found: asyncio.Future[EarnEP1Device] = (
132
+ asyncio.get_running_loop().create_future()
133
+ )
134
+ device = EarnEP1Device(host=host)
135
+ self._validate_state = (host, device, found)
136
+ try:
137
+ async with asyncio.timeout(timeout):
138
+ return await found
139
+ except TimeoutError:
140
+ return None
141
+ finally:
142
+ self._validate_state = None
143
+
144
+ def _handle_packet(self, source_ip: str, payload: dict[str, Any]) -> None:
145
+ """Dispatch a parsed packet to registered devices and discover/validate."""
146
+ # Normal registered device handling
147
+ entry = self._devices.get(source_ip)
148
+ if entry is not None:
149
+ device, callback = entry
150
+ _update_device(device, payload)
151
+ callback(device, payload)
152
+
153
+ # Instance discover — accept from any IP
154
+ if self._discover_state is not None:
155
+ if source_ip not in self._discover_state:
156
+ self._discover_state[source_ip] = EarnEP1Device(host=source_ip)
157
+ _update_device(self._discover_state[source_ip], payload)
158
+
159
+ # Instance validate — accept from specific host
160
+ if self._validate_state is not None:
161
+ v_host, v_device, v_future = self._validate_state
162
+ if source_ip == v_host and not v_future.done():
163
+ _update_device(v_device, payload)
164
+ v_future.set_result(v_device)
165
+
166
+
167
+ def _update_device(device: EarnEP1Device, payload: dict[str, Any]) -> None:
168
+ """Update device state from a parsed packet."""
169
+ if "serial" in payload and device.serial is None:
170
+ device.serial = payload["serial"]
171
+ if "model" in payload:
172
+ device.model = payload["model"]
173
+ if "swVersion" in payload:
174
+ device.sw_version = str(payload["swVersion"])
175
+ device.data.update(payload)
176
+
177
+
178
+ async def discover(
179
+ timeout: int | float = 10,
180
+ port: int = DEFAULT_PORT,
181
+ ) -> list[EarnEP1Device]:
182
+ """Listen for EARN-E devices on the network.
183
+
184
+ Opens a temporary UDP socket, collects unique devices (by source IP)
185
+ for `timeout` seconds. Raises OSError if the port can't be bound.
186
+ """
187
+ listener = EarnEP1Listener(port=port)
188
+ await listener.start()
189
+ try:
190
+ return await listener.discover(timeout=timeout)
191
+ finally:
192
+ await listener.stop()
193
+
194
+
195
+ async def validate(
196
+ host: str,
197
+ timeout: int | float = 65,
198
+ port: int = DEFAULT_PORT,
199
+ ) -> EarnEP1Device | None:
200
+ """Validate that a specific host is an EARN-E device.
201
+
202
+ Returns as soon as the first valid packet arrives from the target host,
203
+ or None on timeout. Raises OSError if the port can't be bound.
204
+ """
205
+ listener = EarnEP1Listener(port=port)
206
+ await listener.start()
207
+ try:
208
+ return await listener.validate(host=host, timeout=timeout)
209
+ finally:
210
+ await listener.stop()
@@ -0,0 +1,17 @@
1
+ """Data models for EARN-E P1 devices."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from dataclasses import dataclass, field
6
+ from typing import Any
7
+
8
+
9
+ @dataclass
10
+ class EarnEP1Device:
11
+ """Represents an EARN-E P1 meter's accumulated state."""
12
+
13
+ host: str
14
+ serial: str | None = None
15
+ model: str | None = None
16
+ sw_version: str | None = None
17
+ data: dict[str, Any] = field(default_factory=dict)
File without changes
File without changes
@@ -0,0 +1,394 @@
1
+ """Tests for the EarnEP1Listener and standalone discover/validate functions."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import json
7
+ import random
8
+ import socket
9
+ from unittest.mock import MagicMock
10
+
11
+ import pytest
12
+
13
+ from earn_e_p1.listener import EarnEP1Listener, discover, validate
14
+
15
+
16
+ @pytest.fixture
17
+ def listener() -> EarnEP1Listener:
18
+ """Create a listener on a random free port."""
19
+ return EarnEP1Listener(port=0)
20
+
21
+
22
+ @pytest.fixture
23
+ def random_port() -> int:
24
+ """Return a random high port for standalone function tests."""
25
+ return random.randint(50000, 60000)
26
+
27
+
28
+ async def _send_packets(
29
+ data: list[bytes],
30
+ port: int,
31
+ delay: float = 0.05,
32
+ ) -> None:
33
+ """Helper to send UDP packets to a port."""
34
+ transport, _ = await asyncio.get_running_loop().create_datagram_endpoint(
35
+ asyncio.DatagramProtocol,
36
+ family=socket.AF_INET,
37
+ )
38
+ try:
39
+ for packet in data:
40
+ transport.sendto(packet, ("127.0.0.1", port))
41
+ await asyncio.sleep(delay)
42
+ finally:
43
+ transport.close()
44
+
45
+
46
+ # --- Start / Stop lifecycle ---
47
+
48
+
49
+ async def test_start_stop(listener: EarnEP1Listener) -> None:
50
+ await listener.start()
51
+ assert listener.is_running
52
+ await listener.stop()
53
+ assert not listener.is_running
54
+
55
+
56
+ async def test_stop_when_not_started(listener: EarnEP1Listener) -> None:
57
+ await listener.stop() # should not raise
58
+
59
+
60
+ # --- Register / Unregister ---
61
+
62
+
63
+ async def test_register_unregister(listener: EarnEP1Listener) -> None:
64
+ callback = MagicMock()
65
+ listener.register("192.168.1.100", callback)
66
+ listener.unregister("192.168.1.100")
67
+
68
+
69
+ async def test_unregister_unknown_host(listener: EarnEP1Listener) -> None:
70
+ listener.unregister("10.0.0.1") # should not raise
71
+
72
+
73
+ # --- Receiving packets ---
74
+
75
+
76
+ async def test_receive_valid_packet(listener: EarnEP1Listener) -> None:
77
+ received = asyncio.Event()
78
+ results: list = []
79
+
80
+ def callback(device, raw):
81
+ results.append((device, raw))
82
+ received.set()
83
+
84
+ listener.register("127.0.0.1", callback)
85
+ await listener.start()
86
+
87
+ await _send_packets([b'{"power_delivered": 1.5}'], listener.port)
88
+
89
+ async with asyncio.timeout(2):
90
+ await received.wait()
91
+
92
+ await listener.stop()
93
+
94
+ assert len(results) == 1
95
+ device, raw = results[0]
96
+ assert device.host == "127.0.0.1"
97
+ assert device.data == {"power_delivered": 1.5}
98
+ assert raw == {"power_delivered": 1.5}
99
+
100
+
101
+ async def test_packet_from_unregistered_ip_ignored(
102
+ listener: EarnEP1Listener,
103
+ ) -> None:
104
+ callback = MagicMock()
105
+ listener.register("10.0.0.1", callback) # different from 127.0.0.1
106
+ await listener.start()
107
+
108
+ await _send_packets([b'{"power_delivered": 1.5}'], listener.port)
109
+ await asyncio.sleep(0.1)
110
+
111
+ await listener.stop()
112
+ callback.assert_not_called()
113
+
114
+
115
+ # --- Packet parsing edge cases ---
116
+
117
+
118
+ async def test_invalid_json_ignored(listener: EarnEP1Listener) -> None:
119
+ callback = MagicMock()
120
+ listener.register("127.0.0.1", callback)
121
+ await listener.start()
122
+
123
+ await _send_packets([b"not json"], listener.port)
124
+ await asyncio.sleep(0.1)
125
+
126
+ await listener.stop()
127
+ callback.assert_not_called()
128
+
129
+
130
+ async def test_non_dict_payload_ignored(listener: EarnEP1Listener) -> None:
131
+ callback = MagicMock()
132
+ listener.register("127.0.0.1", callback)
133
+ await listener.start()
134
+
135
+ await _send_packets([b"[1, 2, 3]"], listener.port)
136
+ await asyncio.sleep(0.1)
137
+
138
+ await listener.stop()
139
+ callback.assert_not_called()
140
+
141
+
142
+ async def test_packet_without_identify_keys_ignored(
143
+ listener: EarnEP1Listener,
144
+ ) -> None:
145
+ callback = MagicMock()
146
+ listener.register("127.0.0.1", callback)
147
+ await listener.start()
148
+
149
+ await _send_packets([b'{"unrelated_key": 42}'], listener.port)
150
+ await asyncio.sleep(0.1)
151
+
152
+ await listener.stop()
153
+ callback.assert_not_called()
154
+
155
+
156
+ # --- Device info extraction ---
157
+
158
+
159
+ async def test_serial_set_once(listener: EarnEP1Listener) -> None:
160
+ received = asyncio.Event()
161
+ call_count = 0
162
+ device_ref = None
163
+
164
+ def callback(device, raw):
165
+ nonlocal call_count, device_ref
166
+ call_count += 1
167
+ device_ref = device
168
+ if call_count == 2:
169
+ received.set()
170
+
171
+ listener.register("127.0.0.1", callback)
172
+ await listener.start()
173
+
174
+ await _send_packets(
175
+ [
176
+ b'{"serial": "FIRST", "power_delivered": 1.0}',
177
+ b'{"serial": "SECOND", "power_delivered": 2.0}',
178
+ ],
179
+ listener.port,
180
+ )
181
+
182
+ async with asyncio.timeout(2):
183
+ await received.wait()
184
+
185
+ await listener.stop()
186
+ assert device_ref.serial == "FIRST"
187
+
188
+
189
+ async def test_model_and_sw_version_updated(listener: EarnEP1Listener) -> None:
190
+ received = asyncio.Event()
191
+ call_count = 0
192
+ device_ref = None
193
+
194
+ def callback(device, raw):
195
+ nonlocal call_count, device_ref
196
+ call_count += 1
197
+ device_ref = device
198
+ if call_count == 2:
199
+ received.set()
200
+
201
+ listener.register("127.0.0.1", callback)
202
+ await listener.start()
203
+
204
+ await _send_packets(
205
+ [
206
+ json.dumps({"serial": "S1", "model": "v1", "swVersion": "1.0"}).encode(),
207
+ json.dumps({"serial": "S1", "model": "v2", "swVersion": "2.0"}).encode(),
208
+ ],
209
+ listener.port,
210
+ )
211
+
212
+ async with asyncio.timeout(2):
213
+ await received.wait()
214
+
215
+ await listener.stop()
216
+ assert device_ref.model == "v2"
217
+ assert device_ref.sw_version == "2.0"
218
+
219
+
220
+ # --- Data merging ---
221
+
222
+
223
+ async def test_data_merging_across_packets(listener: EarnEP1Listener) -> None:
224
+ received = asyncio.Event()
225
+ call_count = 0
226
+ device_ref = None
227
+
228
+ def callback(device, raw):
229
+ nonlocal call_count, device_ref
230
+ call_count += 1
231
+ device_ref = device
232
+ if call_count == 2:
233
+ received.set()
234
+
235
+ listener.register("127.0.0.1", callback)
236
+ await listener.start()
237
+
238
+ await _send_packets(
239
+ [
240
+ b'{"power_delivered": 1.5, "voltage_l1": 230.0}',
241
+ b'{"serial": "S1", "energy_delivered_tariff1": 100.0}',
242
+ ],
243
+ listener.port,
244
+ )
245
+
246
+ async with asyncio.timeout(2):
247
+ await received.wait()
248
+
249
+ await listener.stop()
250
+
251
+ assert device_ref.data["power_delivered"] == 1.5
252
+ assert device_ref.data["voltage_l1"] == 230.0
253
+ assert device_ref.data["energy_delivered_tariff1"] == 100.0
254
+
255
+
256
+ # --- Multiple devices ---
257
+
258
+
259
+ async def test_multiple_devices_independent(listener: EarnEP1Listener) -> None:
260
+ received = asyncio.Event()
261
+ results_1: list = []
262
+ results_2: list = []
263
+
264
+ def cb1(device, raw):
265
+ results_1.append(device)
266
+ received.set()
267
+
268
+ def cb2(device, raw):
269
+ results_2.append(device)
270
+
271
+ listener.register("127.0.0.1", cb1)
272
+ listener.register("10.0.0.1", cb2)
273
+ await listener.start()
274
+
275
+ await _send_packets([b'{"power_delivered": 1.5}'], listener.port)
276
+
277
+ async with asyncio.timeout(2):
278
+ await received.wait()
279
+
280
+ await listener.stop()
281
+
282
+ assert len(results_1) == 1
283
+ assert len(results_2) == 0
284
+
285
+
286
+ # --- Instance discover() ---
287
+
288
+
289
+ async def test_instance_discover_while_running(
290
+ listener: EarnEP1Listener,
291
+ ) -> None:
292
+ callback = MagicMock()
293
+ listener.register("127.0.0.1", callback)
294
+ await listener.start()
295
+
296
+ task = asyncio.create_task(
297
+ _send_packets(
298
+ [b'{"serial": "S1", "power_delivered": 1.5}'] * 3,
299
+ listener.port,
300
+ )
301
+ )
302
+ devices = await listener.discover(timeout=0.5)
303
+ await task
304
+ await listener.stop()
305
+
306
+ assert len(devices) == 1
307
+ assert devices[0].serial == "S1"
308
+ assert callback.call_count > 0
309
+
310
+
311
+ # --- Instance validate() ---
312
+
313
+
314
+ async def test_instance_validate_while_running(
315
+ listener: EarnEP1Listener,
316
+ ) -> None:
317
+ callback = MagicMock()
318
+ listener.register("127.0.0.1", callback)
319
+ await listener.start()
320
+
321
+ task = asyncio.create_task(
322
+ _send_packets(
323
+ [b'{"serial": "S1", "power_delivered": 1.5}'] * 3,
324
+ listener.port,
325
+ )
326
+ )
327
+ device = await listener.validate("127.0.0.1", timeout=2)
328
+ await task
329
+ await listener.stop()
330
+
331
+ assert device is not None
332
+ assert device.serial == "S1"
333
+
334
+
335
+ # --- Standalone discover() ---
336
+
337
+
338
+ async def test_standalone_discover_finds_device(random_port: int) -> None:
339
+ task = asyncio.create_task(
340
+ _send_packets(
341
+ [b'{"serial": "S1", "power_delivered": 1.5}'] * 5,
342
+ random_port,
343
+ delay=0.1,
344
+ )
345
+ )
346
+ devices = await discover(timeout=1, port=random_port)
347
+ await task
348
+
349
+ assert len(devices) == 1
350
+ assert devices[0].host == "127.0.0.1"
351
+ assert devices[0].serial == "S1"
352
+
353
+
354
+ async def test_standalone_discover_no_devices(random_port: int) -> None:
355
+ devices = await discover(timeout=0.3, port=random_port)
356
+ assert devices == []
357
+
358
+
359
+ # --- Standalone validate() ---
360
+
361
+
362
+ async def test_standalone_validate_success(random_port: int) -> None:
363
+ task = asyncio.create_task(
364
+ _send_packets(
365
+ [b'{"serial": "S1", "power_delivered": 1.5}'] * 5,
366
+ random_port,
367
+ delay=0.1,
368
+ )
369
+ )
370
+ device = await validate("127.0.0.1", timeout=2, port=random_port)
371
+ await task
372
+
373
+ assert device is not None
374
+ assert device.host == "127.0.0.1"
375
+ assert device.serial == "S1"
376
+
377
+
378
+ async def test_standalone_validate_timeout(random_port: int) -> None:
379
+ device = await validate("192.168.1.100", timeout=0.3, port=random_port)
380
+ assert device is None
381
+
382
+
383
+ async def test_standalone_validate_wrong_host_ignored(random_port: int) -> None:
384
+ task = asyncio.create_task(
385
+ _send_packets(
386
+ [b'{"power_delivered": 1.5}'] * 3,
387
+ random_port,
388
+ delay=0.1,
389
+ )
390
+ )
391
+ device = await validate("10.0.0.1", timeout=0.5, port=random_port)
392
+ await task
393
+
394
+ assert device is None
@@ -0,0 +1,28 @@
1
+ """Tests for the EarnEP1Device model."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from earn_e_p1.models import EarnEP1Device
6
+
7
+
8
+ def test_device_defaults() -> None:
9
+ device = EarnEP1Device(host="192.168.1.100")
10
+ assert device.host == "192.168.1.100"
11
+ assert device.serial is None
12
+ assert device.model is None
13
+ assert device.sw_version is None
14
+ assert device.data == {}
15
+
16
+
17
+ def test_device_with_all_fields() -> None:
18
+ device = EarnEP1Device(
19
+ host="192.168.1.100",
20
+ serial="ABC123",
21
+ model="P1-Monitor",
22
+ sw_version="1.2.3",
23
+ data={"power_delivered": 1.5},
24
+ )
25
+ assert device.serial == "ABC123"
26
+ assert device.model == "P1-Monitor"
27
+ assert device.sw_version == "1.2.3"
28
+ assert device.data == {"power_delivered": 1.5}
@@ -0,0 +1,205 @@
1
+ version = 1
2
+ revision = 3
3
+ requires-python = ">=3.12"
4
+
5
+ [[package]]
6
+ name = "colorama"
7
+ version = "0.4.6"
8
+ source = { registry = "https://pypi.org/simple" }
9
+ sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
10
+ wheels = [
11
+ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
12
+ ]
13
+
14
+ [[package]]
15
+ name = "coverage"
16
+ version = "7.13.5"
17
+ source = { registry = "https://pypi.org/simple" }
18
+ sdist = { url = "https://files.pythonhosted.org/packages/9d/e0/70553e3000e345daff267cec284ce4cbf3fc141b6da229ac52775b5428f1/coverage-7.13.5.tar.gz", hash = "sha256:c81f6515c4c40141f83f502b07bbfa5c240ba25bbe73da7b33f1e5b6120ff179", size = 915967, upload-time = "2026-03-17T10:33:18.341Z" }
19
+ wheels = [
20
+ { url = "https://files.pythonhosted.org/packages/a0/c3/a396306ba7db865bf96fc1fb3b7fd29bcbf3d829df642e77b13555163cd6/coverage-7.13.5-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:460cf0114c5016fa841214ff5564aa4864f11948da9440bc97e21ad1f4ba1e01", size = 219554, upload-time = "2026-03-17T10:30:42.208Z" },
21
+ { url = "https://files.pythonhosted.org/packages/a6/16/a68a19e5384e93f811dccc51034b1fd0b865841c390e3c931dcc4699e035/coverage-7.13.5-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0e223ce4b4ed47f065bfb123687686512e37629be25cc63728557ae7db261422", size = 219908, upload-time = "2026-03-17T10:30:43.906Z" },
22
+ { url = "https://files.pythonhosted.org/packages/29/72/20b917c6793af3a5ceb7fb9c50033f3ec7865f2911a1416b34a7cfa0813b/coverage-7.13.5-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:6e3370441f4513c6252bf042b9c36d22491142385049243253c7e48398a15a9f", size = 251419, upload-time = "2026-03-17T10:30:45.545Z" },
23
+ { url = "https://files.pythonhosted.org/packages/8c/49/cd14b789536ac6a4778c453c6a2338bc0a2fb60c5a5a41b4008328b9acc1/coverage-7.13.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:03ccc709a17a1de074fb1d11f217342fb0d2b1582ed544f554fc9fc3f07e95f5", size = 254159, upload-time = "2026-03-17T10:30:47.204Z" },
24
+ { url = "https://files.pythonhosted.org/packages/9d/00/7b0edcfe64e2ed4c0340dac14a52ad0f4c9bd0b8b5e531af7d55b703db7c/coverage-7.13.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3f4818d065964db3c1c66dc0fbdac5ac692ecbc875555e13374fdbe7eedb4376", size = 255270, upload-time = "2026-03-17T10:30:48.812Z" },
25
+ { url = "https://files.pythonhosted.org/packages/93/89/7ffc4ba0f5d0a55c1e84ea7cee39c9fc06af7b170513d83fbf3bbefce280/coverage-7.13.5-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:012d5319e66e9d5a218834642d6c35d265515a62f01157a45bcc036ecf947256", size = 257538, upload-time = "2026-03-17T10:30:50.77Z" },
26
+ { url = "https://files.pythonhosted.org/packages/81/bd/73ddf85f93f7e6fa83e77ccecb6162d9415c79007b4bc124008a4995e4a7/coverage-7.13.5-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:8dd02af98971bdb956363e4827d34425cb3df19ee550ef92855b0acb9c7ce51c", size = 251821, upload-time = "2026-03-17T10:30:52.5Z" },
27
+ { url = "https://files.pythonhosted.org/packages/a0/81/278aff4e8dec4926a0bcb9486320752811f543a3ce5b602cc7a29978d073/coverage-7.13.5-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:f08fd75c50a760c7eb068ae823777268daaf16a80b918fa58eea888f8e3919f5", size = 253191, upload-time = "2026-03-17T10:30:54.543Z" },
28
+ { url = "https://files.pythonhosted.org/packages/70/ee/fe1621488e2e0a58d7e94c4800f0d96f79671553488d401a612bebae324b/coverage-7.13.5-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:843ea8643cf967d1ac7e8ecd4bb00c99135adf4816c0c0593fdcc47b597fcf09", size = 251337, upload-time = "2026-03-17T10:30:56.663Z" },
29
+ { url = "https://files.pythonhosted.org/packages/37/a6/f79fb37aa104b562207cc23cb5711ab6793608e246cae1e93f26b2236ed9/coverage-7.13.5-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:9d44d7aa963820b1b971dbecd90bfe5fe8f81cff79787eb6cca15750bd2f79b9", size = 255404, upload-time = "2026-03-17T10:30:58.427Z" },
30
+ { url = "https://files.pythonhosted.org/packages/75/f0/ed15262a58ec81ce457ceb717b7f78752a1713556b19081b76e90896e8d4/coverage-7.13.5-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:7132bed4bd7b836200c591410ae7d97bf7ae8be6fc87d160b2bd881df929e7bf", size = 250903, upload-time = "2026-03-17T10:31:00.093Z" },
31
+ { url = "https://files.pythonhosted.org/packages/0f/e9/9129958f20e7e9d4d56d51d42ccf708d15cac355ff4ac6e736e97a9393d2/coverage-7.13.5-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a698e363641b98843c517817db75373c83254781426e94ada3197cabbc2c919c", size = 252780, upload-time = "2026-03-17T10:31:01.916Z" },
32
+ { url = "https://files.pythonhosted.org/packages/a4/d7/0ad9b15812d81272db94379fe4c6df8fd17781cc7671fdfa30c76ba5ff7b/coverage-7.13.5-cp312-cp312-win32.whl", hash = "sha256:bdba0a6b8812e8c7df002d908a9a2ea3c36e92611b5708633c50869e6d922fdf", size = 222093, upload-time = "2026-03-17T10:31:03.642Z" },
33
+ { url = "https://files.pythonhosted.org/packages/29/3d/821a9a5799fac2556bcf0bd37a70d1d11fa9e49784b6d22e92e8b2f85f18/coverage-7.13.5-cp312-cp312-win_amd64.whl", hash = "sha256:d2c87e0c473a10bffe991502eac389220533024c8082ec1ce849f4218dded810", size = 222900, upload-time = "2026-03-17T10:31:05.651Z" },
34
+ { url = "https://files.pythonhosted.org/packages/d4/fa/2238c2ad08e35cf4f020ea721f717e09ec3152aea75d191a7faf3ef009a8/coverage-7.13.5-cp312-cp312-win_arm64.whl", hash = "sha256:bf69236a9a81bdca3bff53796237aab096cdbf8d78a66ad61e992d9dac7eb2de", size = 221515, upload-time = "2026-03-17T10:31:07.293Z" },
35
+ { url = "https://files.pythonhosted.org/packages/74/8c/74fedc9663dcf168b0a059d4ea756ecae4da77a489048f94b5f512a8d0b3/coverage-7.13.5-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5ec4af212df513e399cf11610cc27063f1586419e814755ab362e50a85ea69c1", size = 219576, upload-time = "2026-03-17T10:31:09.045Z" },
36
+ { url = "https://files.pythonhosted.org/packages/0c/c9/44fb661c55062f0818a6ffd2685c67aa30816200d5f2817543717d4b92eb/coverage-7.13.5-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:941617e518602e2d64942c88ec8499f7fbd49d3f6c4327d3a71d43a1973032f3", size = 219942, upload-time = "2026-03-17T10:31:10.708Z" },
37
+ { url = "https://files.pythonhosted.org/packages/5f/13/93419671cee82b780bab7ea96b67c8ef448f5f295f36bf5031154ec9a790/coverage-7.13.5-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:da305e9937617ee95c2e39d8ff9f040e0487cbf1ac174f777ed5eddd7a7c1f26", size = 250935, upload-time = "2026-03-17T10:31:12.392Z" },
38
+ { url = "https://files.pythonhosted.org/packages/ac/68/1666e3a4462f8202d836920114fa7a5ee9275d1fa45366d336c551a162dd/coverage-7.13.5-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:78e696e1cc714e57e8b25760b33a8b1026b7048d270140d25dafe1b0a1ee05a3", size = 253541, upload-time = "2026-03-17T10:31:14.247Z" },
39
+ { url = "https://files.pythonhosted.org/packages/4e/5e/3ee3b835647be646dcf3c65a7c6c18f87c27326a858f72ab22c12730773d/coverage-7.13.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:02ca0eed225b2ff301c474aeeeae27d26e2537942aa0f87491d3e147e784a82b", size = 254780, upload-time = "2026-03-17T10:31:16.193Z" },
40
+ { url = "https://files.pythonhosted.org/packages/44/b3/cb5bd1a04cfcc49ede6cd8409d80bee17661167686741e041abc7ee1b9a9/coverage-7.13.5-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:04690832cbea4e4663d9149e05dba142546ca05cb1848816760e7f58285c970a", size = 256912, upload-time = "2026-03-17T10:31:17.89Z" },
41
+ { url = "https://files.pythonhosted.org/packages/1b/66/c1dceb7b9714473800b075f5c8a84f4588f887a90eb8645282031676e242/coverage-7.13.5-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:0590e44dd2745c696a778f7bab6aa95256de2cbc8b8cff4f7db8ff09813d6969", size = 251165, upload-time = "2026-03-17T10:31:19.605Z" },
42
+ { url = "https://files.pythonhosted.org/packages/b7/62/5502b73b97aa2e53ea22a39cf8649ff44827bef76d90bf638777daa27a9d/coverage-7.13.5-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d7cfad2d6d81dd298ab6b89fe72c3b7b05ec7544bdda3b707ddaecff8d25c161", size = 252908, upload-time = "2026-03-17T10:31:21.312Z" },
43
+ { url = "https://files.pythonhosted.org/packages/7d/37/7792c2d69854397ca77a55c4646e5897c467928b0e27f2d235d83b5d08c6/coverage-7.13.5-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:e092b9499de38ae0fbfbc603a74660eb6ff3e869e507b50d85a13b6db9863e15", size = 250873, upload-time = "2026-03-17T10:31:23.565Z" },
44
+ { url = "https://files.pythonhosted.org/packages/a3/23/bc866fb6163be52a8a9e5d708ba0d3b1283c12158cefca0a8bbb6e247a43/coverage-7.13.5-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:48c39bc4a04d983a54a705a6389512883d4a3b9862991b3617d547940e9f52b1", size = 255030, upload-time = "2026-03-17T10:31:25.58Z" },
45
+ { url = "https://files.pythonhosted.org/packages/7d/8b/ef67e1c222ef49860701d346b8bbb70881bef283bd5f6cbba68a39a086c7/coverage-7.13.5-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:2d3807015f138ffea1ed9afeeb8624fd781703f2858b62a8dd8da5a0994c57b6", size = 250694, upload-time = "2026-03-17T10:31:27.316Z" },
46
+ { url = "https://files.pythonhosted.org/packages/46/0d/866d1f74f0acddbb906db212e096dee77a8e2158ca5e6bb44729f9d93298/coverage-7.13.5-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ee2aa19e03161671ec964004fb74b2257805d9710bf14a5c704558b9d8dbaf17", size = 252469, upload-time = "2026-03-17T10:31:29.472Z" },
47
+ { url = "https://files.pythonhosted.org/packages/7a/f5/be742fec31118f02ce42b21c6af187ad6a344fed546b56ca60caacc6a9a0/coverage-7.13.5-cp313-cp313-win32.whl", hash = "sha256:ce1998c0483007608c8382f4ff50164bfc5bd07a2246dd272aa4043b75e61e85", size = 222112, upload-time = "2026-03-17T10:31:31.526Z" },
48
+ { url = "https://files.pythonhosted.org/packages/66/40/7732d648ab9d069a46e686043241f01206348e2bbf128daea85be4d6414b/coverage-7.13.5-cp313-cp313-win_amd64.whl", hash = "sha256:631efb83f01569670a5e866ceb80fe483e7c159fac6f167e6571522636104a0b", size = 222923, upload-time = "2026-03-17T10:31:33.633Z" },
49
+ { url = "https://files.pythonhosted.org/packages/48/af/fea819c12a095781f6ccd504890aaddaf88b8fab263c4940e82c7b770124/coverage-7.13.5-cp313-cp313-win_arm64.whl", hash = "sha256:f4cd16206ad171cbc2470dbea9103cf9a7607d5fe8c242fdf1edf36174020664", size = 221540, upload-time = "2026-03-17T10:31:35.445Z" },
50
+ { url = "https://files.pythonhosted.org/packages/23/d2/17879af479df7fbbd44bd528a31692a48f6b25055d16482fdf5cdb633805/coverage-7.13.5-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0428cbef5783ad91fe240f673cc1f76b25e74bbfe1a13115e4aa30d3f538162d", size = 220262, upload-time = "2026-03-17T10:31:37.184Z" },
51
+ { url = "https://files.pythonhosted.org/packages/5b/4c/d20e554f988c8f91d6a02c5118f9abbbf73a8768a3048cb4962230d5743f/coverage-7.13.5-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e0b216a19534b2427cc201a26c25da4a48633f29a487c61258643e89d28200c0", size = 220617, upload-time = "2026-03-17T10:31:39.245Z" },
52
+ { url = "https://files.pythonhosted.org/packages/29/9c/f9f5277b95184f764b24e7231e166dfdb5780a46d408a2ac665969416d61/coverage-7.13.5-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:972a9cd27894afe4bc2b1480107054e062df08e671df7c2f18c205e805ccd806", size = 261912, upload-time = "2026-03-17T10:31:41.324Z" },
53
+ { url = "https://files.pythonhosted.org/packages/d5/f6/7f1ab39393eeb50cfe4747ae8ef0e4fc564b989225aa1152e13a180d74f8/coverage-7.13.5-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:4b59148601efcd2bac8c4dbf1f0ad6391693ccf7a74b8205781751637076aee3", size = 263987, upload-time = "2026-03-17T10:31:43.724Z" },
54
+ { url = "https://files.pythonhosted.org/packages/a0/d7/62c084fb489ed9c6fbdf57e006752e7c516ea46fd690e5ed8b8617c7d52e/coverage-7.13.5-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:505d7083c8b0c87a8fa8c07370c285847c1f77739b22e299ad75a6af6c32c5c9", size = 266416, upload-time = "2026-03-17T10:31:45.769Z" },
55
+ { url = "https://files.pythonhosted.org/packages/a9/f6/df63d8660e1a0bff6125947afda112a0502736f470d62ca68b288ea762d8/coverage-7.13.5-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:60365289c3741e4db327e7baff2a4aaacf22f788e80fa4683393891b70a89fbd", size = 267558, upload-time = "2026-03-17T10:31:48.293Z" },
56
+ { url = "https://files.pythonhosted.org/packages/5b/02/353ca81d36779bd108f6d384425f7139ac3c58c750dcfaafe5d0bee6436b/coverage-7.13.5-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:1b88c69c8ef5d4b6fe7dea66d6636056a0f6a7527c440e890cf9259011f5e606", size = 261163, upload-time = "2026-03-17T10:31:50.125Z" },
57
+ { url = "https://files.pythonhosted.org/packages/2c/16/2e79106d5749bcaf3aee6d309123548e3276517cd7851faa8da213bc61bf/coverage-7.13.5-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:5b13955d31d1633cf9376908089b7cebe7d15ddad7aeaabcbe969a595a97e95e", size = 263981, upload-time = "2026-03-17T10:31:51.961Z" },
58
+ { url = "https://files.pythonhosted.org/packages/29/c7/c29e0c59ffa6942030ae6f50b88ae49988e7e8da06de7ecdbf49c6d4feae/coverage-7.13.5-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:f70c9ab2595c56f81a89620e22899eea8b212a4041bd728ac6f4a28bf5d3ddd0", size = 261604, upload-time = "2026-03-17T10:31:53.872Z" },
59
+ { url = "https://files.pythonhosted.org/packages/40/48/097cdc3db342f34006a308ab41c3a7c11c3f0d84750d340f45d88a782e00/coverage-7.13.5-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:084b84a8c63e8d6fc7e3931b316a9bcafca1458d753c539db82d31ed20091a87", size = 265321, upload-time = "2026-03-17T10:31:55.997Z" },
60
+ { url = "https://files.pythonhosted.org/packages/bb/1f/4994af354689e14fd03a75f8ec85a9a68d94e0188bbdab3fc1516b55e512/coverage-7.13.5-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:ad14385487393e386e2ea988b09d62dd42c397662ac2dabc3832d71253eee479", size = 260502, upload-time = "2026-03-17T10:31:58.308Z" },
61
+ { url = "https://files.pythonhosted.org/packages/22/c6/9bb9ef55903e628033560885f5c31aa227e46878118b63ab15dc7ba87797/coverage-7.13.5-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:7f2c47b36fe7709a6e83bfadf4eefb90bd25fbe4014d715224c4316f808e59a2", size = 262688, upload-time = "2026-03-17T10:32:00.141Z" },
62
+ { url = "https://files.pythonhosted.org/packages/14/4f/f5df9007e50b15e53e01edea486814783a7f019893733d9e4d6caad75557/coverage-7.13.5-cp313-cp313t-win32.whl", hash = "sha256:67e9bc5449801fad0e5dff329499fb090ba4c5800b86805c80617b4e29809b2a", size = 222788, upload-time = "2026-03-17T10:32:02.246Z" },
63
+ { url = "https://files.pythonhosted.org/packages/e1/98/aa7fccaa97d0f3192bec013c4e6fd6d294a6ed44b640e6bb61f479e00ed5/coverage-7.13.5-cp313-cp313t-win_amd64.whl", hash = "sha256:da86cdcf10d2519e10cabb8ac2de03da1bcb6e4853790b7fbd48523332e3a819", size = 223851, upload-time = "2026-03-17T10:32:04.416Z" },
64
+ { url = "https://files.pythonhosted.org/packages/3d/8b/e5c469f7352651e5f013198e9e21f97510b23de957dd06a84071683b4b60/coverage-7.13.5-cp313-cp313t-win_arm64.whl", hash = "sha256:0ecf12ecb326fe2c339d93fc131816f3a7367d223db37817208905c89bded911", size = 222104, upload-time = "2026-03-17T10:32:06.65Z" },
65
+ { url = "https://files.pythonhosted.org/packages/8e/77/39703f0d1d4b478bfd30191d3c14f53caf596fac00efb3f8f6ee23646439/coverage-7.13.5-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:fbabfaceaeb587e16f7008f7795cd80d20ec548dc7f94fbb0d4ec2e038ce563f", size = 219621, upload-time = "2026-03-17T10:32:08.589Z" },
66
+ { url = "https://files.pythonhosted.org/packages/e2/3e/51dff36d99ae14639a133d9b164d63e628532e2974d8b1edb99dd1ebc733/coverage-7.13.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9bb2a28101a443669a423b665939381084412b81c3f8c0fcfbac57f4e30b5b8e", size = 219953, upload-time = "2026-03-17T10:32:10.507Z" },
67
+ { url = "https://files.pythonhosted.org/packages/6a/6c/1f1917b01eb647c2f2adc9962bd66c79eb978951cab61bdc1acab3290c07/coverage-7.13.5-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bd3a2fbc1c6cccb3c5106140d87cc6a8715110373ef42b63cf5aea29df8c217a", size = 250992, upload-time = "2026-03-17T10:32:12.41Z" },
68
+ { url = "https://files.pythonhosted.org/packages/22/e5/06b1f88f42a5a99df42ce61208bdec3bddb3d261412874280a19796fc09c/coverage-7.13.5-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:6c36ddb64ed9d7e496028d1d00dfec3e428e0aabf4006583bb1839958d280510", size = 253503, upload-time = "2026-03-17T10:32:14.449Z" },
69
+ { url = "https://files.pythonhosted.org/packages/80/28/2a148a51e5907e504fa7b85490277734e6771d8844ebcc48764a15e28155/coverage-7.13.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:380e8e9084d8eb38db3a9176a1a4f3c0082c3806fa0dc882d1d87abc3c789247", size = 254852, upload-time = "2026-03-17T10:32:16.56Z" },
70
+ { url = "https://files.pythonhosted.org/packages/61/77/50e8d3d85cc0b7ebe09f30f151d670e302c7ff4a1bf6243f71dd8b0981fa/coverage-7.13.5-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e808af52a0513762df4d945ea164a24b37f2f518cbe97e03deaa0ee66139b4d6", size = 257161, upload-time = "2026-03-17T10:32:19.004Z" },
71
+ { url = "https://files.pythonhosted.org/packages/3b/c4/b5fd1d4b7bf8d0e75d997afd3925c59ba629fc8616f1b3aae7605132e256/coverage-7.13.5-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e301d30dd7e95ae068671d746ba8c34e945a82682e62918e41b2679acd2051a0", size = 251021, upload-time = "2026-03-17T10:32:21.344Z" },
72
+ { url = "https://files.pythonhosted.org/packages/f8/66/6ea21f910e92d69ef0b1c3346ea5922a51bad4446c9126db2ae96ee24c4c/coverage-7.13.5-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:800bc829053c80d240a687ceeb927a94fd108bbdc68dfbe505d0d75ab578a882", size = 252858, upload-time = "2026-03-17T10:32:23.506Z" },
73
+ { url = "https://files.pythonhosted.org/packages/9e/ea/879c83cb5d61aa2a35fb80e72715e92672daef8191b84911a643f533840c/coverage-7.13.5-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:0b67af5492adb31940ee418a5a655c28e48165da5afab8c7fa6fd72a142f8740", size = 250823, upload-time = "2026-03-17T10:32:25.516Z" },
74
+ { url = "https://files.pythonhosted.org/packages/8a/fb/616d95d3adb88b9803b275580bdeee8bd1b69a886d057652521f83d7322f/coverage-7.13.5-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:c9136ff29c3a91e25b1d1552b5308e53a1e0653a23e53b6366d7c2dcbbaf8a16", size = 255099, upload-time = "2026-03-17T10:32:27.944Z" },
75
+ { url = "https://files.pythonhosted.org/packages/1c/93/25e6917c90ec1c9a56b0b26f6cad6408e5f13bb6b35d484a0d75c9cf000d/coverage-7.13.5-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:cff784eef7f0b8f6cb28804fbddcfa99f89efe4cc35fb5627e3ac58f91ed3ac0", size = 250638, upload-time = "2026-03-17T10:32:29.914Z" },
76
+ { url = "https://files.pythonhosted.org/packages/fc/7b/dc1776b0464145a929deed214aef9fb1493f159b59ff3c7eeeedf91eddd0/coverage-7.13.5-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:68a4953be99b17ac3c23b6efbc8a38330d99680c9458927491d18700ef23ded0", size = 252295, upload-time = "2026-03-17T10:32:31.981Z" },
77
+ { url = "https://files.pythonhosted.org/packages/ea/fb/99cbbc56a26e07762a2740713f3c8f9f3f3106e3a3dd8cc4474954bccd34/coverage-7.13.5-cp314-cp314-win32.whl", hash = "sha256:35a31f2b1578185fbe6aa2e74cea1b1d0bbf4c552774247d9160d29b80ed56cc", size = 222360, upload-time = "2026-03-17T10:32:34.233Z" },
78
+ { url = "https://files.pythonhosted.org/packages/8d/b7/4758d4f73fb536347cc5e4ad63662f9d60ba9118cb6785e9616b2ce5d7fa/coverage-7.13.5-cp314-cp314-win_amd64.whl", hash = "sha256:2aa055ae1857258f9e0045be26a6d62bdb47a72448b62d7b55f4820f361a2633", size = 223174, upload-time = "2026-03-17T10:32:36.369Z" },
79
+ { url = "https://files.pythonhosted.org/packages/2c/f2/24d84e1dfe70f8ac9fdf30d338239860d0d1d5da0bda528959d0ebc9da28/coverage-7.13.5-cp314-cp314-win_arm64.whl", hash = "sha256:1b11eef33edeae9d142f9b4358edb76273b3bfd30bc3df9a4f95d0e49caf94e8", size = 221739, upload-time = "2026-03-17T10:32:38.736Z" },
80
+ { url = "https://files.pythonhosted.org/packages/60/5b/4a168591057b3668c2428bff25dd3ebc21b629d666d90bcdfa0217940e84/coverage-7.13.5-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:10a0c37f0b646eaff7cce1874c31d1f1ccb297688d4c747291f4f4c70741cc8b", size = 220351, upload-time = "2026-03-17T10:32:41.196Z" },
81
+ { url = "https://files.pythonhosted.org/packages/f5/21/1fd5c4dbfe4a58b6b99649125635df46decdfd4a784c3cd6d410d303e370/coverage-7.13.5-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b5db73ba3c41c7008037fa731ad5459fc3944cb7452fc0aa9f822ad3533c583c", size = 220612, upload-time = "2026-03-17T10:32:43.204Z" },
82
+ { url = "https://files.pythonhosted.org/packages/d6/fe/2a924b3055a5e7e4512655a9d4609781b0d62334fa0140c3e742926834e2/coverage-7.13.5-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:750db93a81e3e5a9831b534be7b1229df848b2e125a604fe6651e48aa070e5f9", size = 261985, upload-time = "2026-03-17T10:32:45.514Z" },
83
+ { url = "https://files.pythonhosted.org/packages/d7/0d/c8928f2bd518c45990fe1a2ab8db42e914ef9b726c975facc4282578c3eb/coverage-7.13.5-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:9ddb4f4a5479f2539644be484da179b653273bca1a323947d48ab107b3ed1f29", size = 264107, upload-time = "2026-03-17T10:32:47.971Z" },
84
+ { url = "https://files.pythonhosted.org/packages/ef/ae/4ae35bbd9a0af9d820362751f0766582833c211224b38665c0f8de3d487f/coverage-7.13.5-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8a7a2049c14f413163e2bdabd37e41179b1d1ccb10ffc6ccc4b7a718429c607", size = 266513, upload-time = "2026-03-17T10:32:50.1Z" },
85
+ { url = "https://files.pythonhosted.org/packages/9c/20/d326174c55af36f74eac6ae781612d9492f060ce8244b570bb9d50d9d609/coverage-7.13.5-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e1c85e0b6c05c592ea6d8768a66a254bfb3874b53774b12d4c89c481eb78cb90", size = 267650, upload-time = "2026-03-17T10:32:52.391Z" },
86
+ { url = "https://files.pythonhosted.org/packages/7a/5e/31484d62cbd0eabd3412e30d74386ece4a0837d4f6c3040a653878bfc019/coverage-7.13.5-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:777c4d1eff1b67876139d24288aaf1817f6c03d6bae9c5cc8d27b83bcfe38fe3", size = 261089, upload-time = "2026-03-17T10:32:54.544Z" },
87
+ { url = "https://files.pythonhosted.org/packages/e9/d8/49a72d6de146eebb0b7e48cc0f4bc2c0dd858e3d4790ab2b39a2872b62bd/coverage-7.13.5-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:6697e29b93707167687543480a40f0db8f356e86d9f67ddf2e37e2dfd91a9dab", size = 263982, upload-time = "2026-03-17T10:32:56.803Z" },
88
+ { url = "https://files.pythonhosted.org/packages/06/3b/0351f1bd566e6e4dd39e978efe7958bde1d32f879e85589de147654f57bb/coverage-7.13.5-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:8fdf453a942c3e4d99bd80088141c4c6960bb232c409d9c3558e2dbaa3998562", size = 261579, upload-time = "2026-03-17T10:32:59.466Z" },
89
+ { url = "https://files.pythonhosted.org/packages/5d/ce/796a2a2f4017f554d7810f5c573449b35b1e46788424a548d4d19201b222/coverage-7.13.5-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:32ca0c0114c9834a43f045a87dcebd69d108d8ffb666957ea65aa132f50332e2", size = 265316, upload-time = "2026-03-17T10:33:01.847Z" },
90
+ { url = "https://files.pythonhosted.org/packages/3d/16/d5ae91455541d1a78bc90abf495be600588aff8f6db5c8b0dae739fa39c9/coverage-7.13.5-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:8769751c10f339021e2638cd354e13adeac54004d1941119b2c96fe5276d45ea", size = 260427, upload-time = "2026-03-17T10:33:03.945Z" },
91
+ { url = "https://files.pythonhosted.org/packages/48/11/07f413dba62db21fb3fad5d0de013a50e073cc4e2dc4306e770360f6dfc8/coverage-7.13.5-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:cec2d83125531bd153175354055cdb7a09987af08a9430bd173c937c6d0fba2a", size = 262745, upload-time = "2026-03-17T10:33:06.285Z" },
92
+ { url = "https://files.pythonhosted.org/packages/91/15/d792371332eb4663115becf4bad47e047d16234b1aff687b1b18c58d60ae/coverage-7.13.5-cp314-cp314t-win32.whl", hash = "sha256:0cd9ed7a8b181775459296e402ca4fb27db1279740a24e93b3b41942ebe4b215", size = 223146, upload-time = "2026-03-17T10:33:08.756Z" },
93
+ { url = "https://files.pythonhosted.org/packages/db/51/37221f59a111dca5e85be7dbf09696323b5b9f13ff65e0641d535ed06ea8/coverage-7.13.5-cp314-cp314t-win_amd64.whl", hash = "sha256:301e3b7dfefecaca37c9f1aa6f0049b7d4ab8dd933742b607765d757aca77d43", size = 224254, upload-time = "2026-03-17T10:33:11.174Z" },
94
+ { url = "https://files.pythonhosted.org/packages/54/83/6acacc889de8987441aa7d5adfbdbf33d288dad28704a67e574f1df9bcbb/coverage-7.13.5-cp314-cp314t-win_arm64.whl", hash = "sha256:9dacc2ad679b292709e0f5fc1ac74a6d4d5562e424058962c7bb0c658ad25e45", size = 222276, upload-time = "2026-03-17T10:33:13.466Z" },
95
+ { url = "https://files.pythonhosted.org/packages/9e/ee/a4cf96b8ce1e566ed238f0659ac2d3f007ed1d14b181bcb684e19561a69a/coverage-7.13.5-py3-none-any.whl", hash = "sha256:34b02417cf070e173989b3db962f7ed56d2f644307b2cf9d5a0f258e13084a61", size = 211346, upload-time = "2026-03-17T10:33:15.691Z" },
96
+ ]
97
+
98
+ [[package]]
99
+ name = "earn-e-p1"
100
+ version = "0.1.0"
101
+ source = { editable = "." }
102
+
103
+ [package.dev-dependencies]
104
+ dev = [
105
+ { name = "pytest" },
106
+ { name = "pytest-asyncio" },
107
+ { name = "pytest-cov" },
108
+ ]
109
+
110
+ [package.metadata]
111
+
112
+ [package.metadata.requires-dev]
113
+ dev = [
114
+ { name = "pytest", specifier = ">=8.0" },
115
+ { name = "pytest-asyncio", specifier = ">=1.0" },
116
+ { name = "pytest-cov", specifier = ">=6.0" },
117
+ ]
118
+
119
+ [[package]]
120
+ name = "iniconfig"
121
+ version = "2.3.0"
122
+ source = { registry = "https://pypi.org/simple" }
123
+ sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }
124
+ wheels = [
125
+ { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },
126
+ ]
127
+
128
+ [[package]]
129
+ name = "packaging"
130
+ version = "26.0"
131
+ source = { registry = "https://pypi.org/simple" }
132
+ sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" }
133
+ wheels = [
134
+ { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" },
135
+ ]
136
+
137
+ [[package]]
138
+ name = "pluggy"
139
+ version = "1.6.0"
140
+ source = { registry = "https://pypi.org/simple" }
141
+ sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }
142
+ wheels = [
143
+ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },
144
+ ]
145
+
146
+ [[package]]
147
+ name = "pygments"
148
+ version = "2.19.2"
149
+ source = { registry = "https://pypi.org/simple" }
150
+ sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" }
151
+ wheels = [
152
+ { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" },
153
+ ]
154
+
155
+ [[package]]
156
+ name = "pytest"
157
+ version = "9.0.2"
158
+ source = { registry = "https://pypi.org/simple" }
159
+ dependencies = [
160
+ { name = "colorama", marker = "sys_platform == 'win32'" },
161
+ { name = "iniconfig" },
162
+ { name = "packaging" },
163
+ { name = "pluggy" },
164
+ { name = "pygments" },
165
+ ]
166
+ sdist = { url = "https://files.pythonhosted.org/packages/d1/db/7ef3487e0fb0049ddb5ce41d3a49c235bf9ad299b6a25d5780a89f19230f/pytest-9.0.2.tar.gz", hash = "sha256:75186651a92bd89611d1d9fc20f0b4345fd827c41ccd5c299a868a05d70edf11", size = 1568901, upload-time = "2025-12-06T21:30:51.014Z" }
167
+ wheels = [
168
+ { url = "https://files.pythonhosted.org/packages/3b/ab/b3226f0bd7cdcf710fbede2b3548584366da3b19b5021e74f5bde2a8fa3f/pytest-9.0.2-py3-none-any.whl", hash = "sha256:711ffd45bf766d5264d487b917733b453d917afd2b0ad65223959f59089f875b", size = 374801, upload-time = "2025-12-06T21:30:49.154Z" },
169
+ ]
170
+
171
+ [[package]]
172
+ name = "pytest-asyncio"
173
+ version = "1.3.0"
174
+ source = { registry = "https://pypi.org/simple" }
175
+ dependencies = [
176
+ { name = "pytest" },
177
+ { name = "typing-extensions", marker = "python_full_version < '3.13'" },
178
+ ]
179
+ sdist = { url = "https://files.pythonhosted.org/packages/90/2c/8af215c0f776415f3590cac4f9086ccefd6fd463befeae41cd4d3f193e5a/pytest_asyncio-1.3.0.tar.gz", hash = "sha256:d7f52f36d231b80ee124cd216ffb19369aa168fc10095013c6b014a34d3ee9e5", size = 50087, upload-time = "2025-11-10T16:07:47.256Z" }
180
+ wheels = [
181
+ { url = "https://files.pythonhosted.org/packages/e5/35/f8b19922b6a25bc0880171a2f1a003eaeb93657475193ab516fd87cac9da/pytest_asyncio-1.3.0-py3-none-any.whl", hash = "sha256:611e26147c7f77640e6d0a92a38ed17c3e9848063698d5c93d5aa7aa11cebff5", size = 15075, upload-time = "2025-11-10T16:07:45.537Z" },
182
+ ]
183
+
184
+ [[package]]
185
+ name = "pytest-cov"
186
+ version = "7.0.0"
187
+ source = { registry = "https://pypi.org/simple" }
188
+ dependencies = [
189
+ { name = "coverage" },
190
+ { name = "pluggy" },
191
+ { name = "pytest" },
192
+ ]
193
+ sdist = { url = "https://files.pythonhosted.org/packages/5e/f7/c933acc76f5208b3b00089573cf6a2bc26dc80a8aece8f52bb7d6b1855ca/pytest_cov-7.0.0.tar.gz", hash = "sha256:33c97eda2e049a0c5298e91f519302a1334c26ac65c1a483d6206fd458361af1", size = 54328, upload-time = "2025-09-09T10:57:02.113Z" }
194
+ wheels = [
195
+ { url = "https://files.pythonhosted.org/packages/ee/49/1377b49de7d0c1ce41292161ea0f721913fa8722c19fb9c1e3aa0367eecb/pytest_cov-7.0.0-py3-none-any.whl", hash = "sha256:3b8e9558b16cc1479da72058bdecf8073661c7f57f7d3c5f22a1c23507f2d861", size = 22424, upload-time = "2025-09-09T10:57:00.695Z" },
196
+ ]
197
+
198
+ [[package]]
199
+ name = "typing-extensions"
200
+ version = "4.15.0"
201
+ source = { registry = "https://pypi.org/simple" }
202
+ sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" }
203
+ wheels = [
204
+ { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" },
205
+ ]