Skip to main content

PyPiVersion Pytest CodeStyle

Introduction

Siglent SPD3303X/-E are programmable lab bench power supplies. They can be accessed remotely via a VISA interface.

This package provides a python API for convenient remote programming of the Device via Ethernet/USB. Currently, the module supports setting voltage and current limits, measuring voltage and current and enabling or disabling individual outputs.

The module also provides a CLI tool to conveniently control the power supply from the command line.

Also supports the very similar RS PRO RSPD3303X-E.

Installation

The package is hosted on PyPI. Install it with

pip install spd3303x

or

pipenv install spd3303x

Examples

To connect to a device that is connected to a LAN and accessible under IP 192.168.0.4:

with SPD3303X.ethernet_device("192.168.0.4") as dev:
    dev.CH1.set_voltage(8)
    dev.CH1.set_current(0.75)
    dev.CH1.set_output(True)
    print(dev.CH1.get_current())
    print(dev.CH1.get_voltage())
    print(dev.CH1.measure_voltage())
    print(dev.CH1.measure_current())
    dev.CH3.set_output(True)

To connect to a USB device:

with SPD3303X.usb_device() as dev:
    dev.CH1.set_voltage(8)
    dev.CH1.set_current(0.75)
    dev.CH1.set_output(True)
    print(dev.CH1.get_current())
    print(dev.CH1.get_voltage())
    print(dev.CH1.measure_voltage())
    print(dev.CH1.measure_current())
    dev.CH3.set_output(True)

CLI

To configure and enable channel 1 on an ethernet device under IP 192.168.0.4:

spd-ctrl -d 192.168.0.4 set 1 --voltage 3.3 --current 0.5 --on

To configure channel 2 on a USB device:

spd-ctrl set 2 -v 5 -c 0.1

To disable (fixed) channel 3 on a USB device with verbose logging:

spd-ctrl -vvv set 3 --off

To list all available options try:

spd-ctrl --help
spd-ctrl set --help

Metadata

Release files for spd3303x 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spd3303x 1.0.3
File Size Uploaded Provenance Actions
spd3303x-1.0.3.tar.gz 4.4 kB Without provenance Details for spd3303x-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spd3303x 1.0.3
File Interpreter ABI Platform Actions
spd3303x-1.0.3-py3-none-any.whl Python 3 none any Details for spd3303x-1.0.3-py3-none-any.whl

Total release size: 9.6 kB

Release files / spd3303x-1.0.3.tar.gz

Download URL spd3303x-1.0.3.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bde8fb2165d5ce753b7d66565718919d0cd24ce567cdc281065d246db14f67de
BLAKE2b-256 checksum
How to use checksums
d08209ca1c17a91c9f96394a8a14558a8b6ec7e36cee281a162875ee8e097ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / spd3303x-1.0.3-py3-none-any.whl

Download URL spd3303x-1.0.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b55baa92e31c41d7efc101b6bb6673deebc415a57c868ac69c2d2c7909b2d4c0
BLAKE2b-256 checksum
How to use checksums
b73e0b138c00d78500dbc55177376cc2400dd3fc3249043008d226996f94a0a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for spd3303x 1.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page