Skip to main content

pydcscontrol PyPI - Version

Python client library for communicating with Advanced Illumination DCS light controllers over the Ethernet interface.

This package implements the controller's SCPI-like command protocol over TCP (default port 777).

Even though the DCS controller is super simple, it is nice to be able to pull in a package to one-liner the most common operations.

These common operation wrappers also do a validation of the current configurations for a sanity check.

Usage

Command line (Using uv)

Using the easy-set CLI script to set the current of one or more DCS channels to 100 mA:

uvx --from pydcscontrol easy-set 100 --channels 1 2

Using the turn-off CLI script to turn off one or more DCS channels:

uvx --from pydcscontrol turn-off

Both commands default to channels 1 and 2 when --channels is omitted.

Python script

Install the package:

uv add pydcscontrol
# or
pip install pydcscontrol

Using continuous mode to set the current of one or more DCS channels to 100 mA:

from pydcscontrol import DCSController

if DCSController().easy_set(channels=[1, 2], current=100):
    print("DCS channels configured successfully")
else:
    print("DCS channels configuration failed")

Quickly turn DCS output off:

from pydcscontrol import DCSController

if DCSController().turn_off(channels=[1, 2]):
    print("DCS channels turned off successfully")
else:
    print("Failed to turn off DCS channels")

Development

uv sync
uv run ruff check
uv run ruff format .
uv run pytest
uv build
git tag -a vX.Y.Z -m vX.Y.Z
git push --tags

If a deployment fails

git tag -d vX.Y.Z
git push origin :refs/tags/vX.Y.Z
git tag -a vX.Y.Z -m vX.Y.Z
git push --tags

Metadata

Release files for pydcscontrol 0.2.0

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

Source distribution (sdist)

Source distribution for pydcscontrol 0.2.0
File Size Uploaded Provenance Actions
pydcscontrol-0.2.0.tar.gz 18.0 kB Without provenance Details for pydcscontrol-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 25.0 kB

Release files / pydcscontrol-0.2.0.tar.gz

Download URL pydcscontrol-0.2.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
db03085eb666e698b6b2b0cc839f3c06429073072478f3a73f3026d640cd181d
BLAKE2b-256 checksum
How to use checksums
54a837426eac48210bacf595d6b7b4c6b4b8af0a05e77908205e8e392b766408
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pydcscontrol-0.2.0-py3-none-any.whl

Download URL pydcscontrol-0.2.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac7f8fdce57c19307f29abb53e7d96915a24e3eb4f5edca0f8f5f5d18952a205
BLAKE2b-256 checksum
How to use checksums
0fa0996b7f5a60842ebd444a5ec030b1e0929144d37be47604ce76a78f423b68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pydcscontrol 0.2.0

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