Owon SPE, SPM, and P4000 series PSU Python control library
This library works with the Owon SPE6103, SPE3103, SPM series, and P4000 series (P4603 and P4305) power supplies. Kiprim devices "DC310S" and "DC605S" are also supported.
Installation
The easiest way to install is straight from the pypi project using pip:
pip install owon-psu
Example Usage with context manager
from owon_psu import OwonPSU
with OwonPSU("/dev/ttyUSB0") as opsu:
print("Identity:", opsu.read_identity())
print("Measured Voltage:", opsu.measure_voltage())
print("Measured Current:", opsu.measure_current())
print("Set Voltage:", opsu.get_voltage())
print("Set Current:", opsu.get_current())
print("Set Voltage Limit:", opsu.get_voltage_limit())
print("Set Current Limit:", opsu.get_current_limit())
opsu.set_voltage(20)
opsu.set_current(2)
opsu.set_voltage_limit(30)
opsu.set_current_limit(3)
print("Output enabled:", opsu.get_output())
opsu.set_output(True)
SPM series multimeter
SPM models expose their built-in multimeter through the same connection. All of its measurement functions are supported: AC/DC voltage, AC/DC current, resistance, capacitance, diode, and continuity.
with OwonPSU("/dev/ttyUSB0") as opsu:
opsu.set_multimeter_function("VOLT:DC")
print("Function:", opsu.get_multimeter_function())
print("Measurement:", opsu.measure_multimeter())
Supported functions are VOLT:DC, VOLT:AC, CURR:DC, CURR:AC, RES,
CAP, DIOD, and CONT. Open or overloaded inputs return inf.
Example Usage without context manager
from owon_psu import OwonPSU
opsu = OwonPSU("/dev/ttyUSB0")
opsu.open()
print("Identity:", opsu.read_identity())
print("Voltage:", opsu.measure_voltage())
print("Current:", opsu.measure_current())
print("Set Voltage:", opsu.get_voltage())
print("Set Current:", opsu.get_current())
print("Set Voltage Limit:", opsu.get_voltage_limit())
print("Set Current Limit:", opsu.get_current_limit())
opsu.set_voltage(20)
opsu.set_current(2)
opsu.set_voltage_limit(30)
opsu.set_current_limit(3)
print("Output enabled:", opsu.get_output())
opsu.set_output(True)
opsu.close()
Metadata
Release files for owon-psu 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| owon_psu-0.0.6.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| owon_psu-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / owon_psu-0.0.6.tar.gz
| Download URL | owon_psu-0.0.6.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9070e428164c3e8d9ff85c60139454eeac56907df8dc04345858ef1eb18cd9b
|
|
BLAKE2b-256 checksum How to use checksums |
fd55b64f97c7287fe9f66df6866cf62fb2060d0ae7df2708a9fc0556e109ec80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.
Transparency logRelease files / owon_psu-0.0.6-py3-none-any.whl
| Download URL | owon_psu-0.0.6-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3994546293ad2887b546cd4eee1b640c78ea47316b9fa449a76e724f4c53177a
|
|
BLAKE2b-256 checksum How to use checksums |
d7a4f9af23c0934c1a554db922dfd0175bd6cf8c8db5f0c877d4c6f2958cc1b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.
Transparency log