Skip to main content

Network client for Advanced Illumination DCS light controllers

Project description

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 a DCS channel to 100 mA:

uvx pydcscontrol easy-set --current 100

Using the turn-off CLI script to turn off DCS output:

uvx pydcscontrol turn-off

Python script

Install the package:

uv add pydcscontrol
# or
pip install pydcscontrol

Using continous mode to set the current of a DCS channel to 100 mA:

from pydcscontrol import DCSController

if DCSController().easy_set(current=100):
    print("DCS channel configured successfully")
else:
    print("DCS channel configuration failed")

Quickly turn DCS output off:

from pydcscontrol import DCSController

if DCSController().off():
    print("DCS channel turned off successfully")
else:
    print("Failed to turn off DCS channel")

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydcscontrol-0.1.3.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydcscontrol-0.1.3-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pydcscontrol-0.1.3.tar.gz.

File metadata

  • Download URL: pydcscontrol-0.1.3.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for pydcscontrol-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c68dc4b39ecc4c752edd558fbfe4d14a6b8b3e485659a807522430d727b30bd9
MD5 cb3037080d49286d19fa2d29cf560994
BLAKE2b-256 2e6f6ab70c89251002543f88121d2a3a52a0cc39fcde40934fdd448a1ac69dca

See more details on using hashes here.

File details

Details for the file pydcscontrol-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pydcscontrol-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for pydcscontrol-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dff87a5532c8d38f863a25775ab299d2642fa85d8f42588f93e242d809dfef1a
MD5 0bb682d93f8adfde39340aac7f8c284f
BLAKE2b-256 f793c1bc3a16b7ca2237c1f30d7f3dabdadb9e4093c1a60d6e2d7b7fd8b82301

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page