Install & Compatibility
Where this runs
tested against v3.0.6 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 18.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 19MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
PySolarmanV5
✓ from pysolarmanv5 import PySolarmanV5
✗ from pysolarmanv5 import SolarmanV5
PySolarmanV5Async
✓ from pysolarmanv5 import PySolarmanV5Async
NoSocketAvailableError
✓ from pysolarmanv5 import NoSocketAvailableError
Connect to a Solarman v5 logger, read sensors and registers.
from pysolarmanv5 import SolarmanV5
import os
inverter = SolarmanV5(
host=os.environ.get('INVERTER_HOST', '192.168.1.100'),
serial=int(os.environ.get('INVERTER_SERIAL', '123456789')),
port=8899,
mb_slave_id=1,
verbose=False
)
print(inverter.get_sensors())
data = inverter.read_holding_registers(register_addr=0, quantity=10)
print(data)
inverter.disconnect()
Upgrade
Version history
3.0.6latest on PyPI · released Dec 11, 2024
Audit
Dependencies
umodbusrequiredModbus communication
paho-mqttoptionalMQTT support (optional)