duosida-ev 0.1.1__py3-none-any.whl

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.
duosida_ev/__init__.py ADDED
@@ -0,0 +1,47 @@
1
+ """
2
+ Duosida EV Charger - Python Library for Direct TCP Control
3
+
4
+ This library provides direct TCP communication with Duosida EV wall chargers,
5
+ bypassing the cloud API for local control and monitoring.
6
+
7
+ Example usage:
8
+ from duosida_ev import DuosidaCharger, discover_chargers
9
+
10
+ # Discover chargers on the network
11
+ devices = discover_chargers()
12
+ for device in devices:
13
+ print(f"Found: {device['ip']}")
14
+
15
+ # Connect and get status
16
+ charger = DuosidaCharger(host="192.168.1.100", device_id="YOUR_DEVICE_ID")
17
+ charger.connect()
18
+ status = charger.get_status()
19
+ print(status)
20
+ charger.disconnect()
21
+ """
22
+
23
+ from .charger import DuosidaCharger, ChargerStatus
24
+ from .discovery import discover_chargers
25
+ from .exceptions import (
26
+ DuosidaError,
27
+ ConnectionError,
28
+ CommunicationError,
29
+ CommandError,
30
+ DiscoveryError,
31
+ ValidationError,
32
+ TimeoutError,
33
+ )
34
+
35
+ __version__ = "0.1.1"
36
+ __all__ = [
37
+ "DuosidaCharger",
38
+ "ChargerStatus",
39
+ "discover_chargers",
40
+ "DuosidaError",
41
+ "ConnectionError",
42
+ "CommunicationError",
43
+ "CommandError",
44
+ "DiscoveryError",
45
+ "ValidationError",
46
+ "TimeoutError",
47
+ ]