Skip to main content

A python client module for VU1 Dials from Streacom

Project description

vudials_client

PyPI version License: MIT

A Python client module for Streacom's VU1 Dial development hardware. This provides a simple interface to manipulate multiple dials.

Features

  • Full Dial API: Easily change your dial's value, color, name, background image, and more!
  • Full Admin API: Provides VU1 Dial Server API key management.

Installation

pip install vudials-client

For development installation:

git clone git@github.com:erinlkolp/vu1-dial-python-module.git
cd vu1-dial-python-module/
pip install -e ".[dev]"

Quick Start

Here's a simple example to get you started:

from vudials_client import vudialsclient

server_key     = os.environ['API_KEY']
admin_key      = os.environ['ADMIN_API_KEY']
server_address = os.environ['VU1_SERVER_ADDRESS']
server_port    = os.environ['VU1_SERVER_PORT']

vu_meter  = vudialsclient.VUDial(server_address, server_port, server_key)
admin_api  = vudialsclient.VUAdmin(server_address, server_port, admin_key)

dial_list = vu_meter.list_dials()
print(dial_list)

api_key_list = admin_api.list_api_keys()
print(api_key_list)

Documentation

For detailed documentation, see the official documentation.

Main Classes

VUDial

The primary class for interacting with the client-side module.

vu_meter  = vudialsclient.VUDial(server_address, server_port, api_key)

Parameters:

  • server_address (str): VU1 Dials Server host (ie. localhost)
  • server_port (int): VU1 Dials Server port (ie. 5340)
  • api_key (str): A valid API key for the VU1 Dials Server

Methods:

  • list_dials(): Processes the given data and returns a result
  • get_dial_info(uid): Saves the current state to a file
  • set_dial_value(uid, value): Sets a dial's value (position)
  • set_dial_color(uid, red, green, blue): Sets a dial's backlight color
  • set_dial_background(uid, file): Sets a dial's background image
  • get_dial_image_crc(uid): Obtains a dial's image CRC
  • set_dial_name(uid, name): Sets a dial's name (no spaces)
  • reload_hw_info(uid): Reloads dial hardware information
  • set_dial_easing(uid, period, step): Sets dial easing
  • set_backlight_easing(uid, period, step): Sets dial easing
  • get_easing_config(uid): Gets easing config for dial (unsupported as of now)

VUAdmin

The primary class for interacting with the client-side module.

admin_api  = vudialsclient.VUAdmin(server_address, server_port, admin_key)

Parameters:

  • server_address (str): VU1 Dials Server host (ie. localhost)
  • server_port (int): VU1 Dials Server port (ie. 5340)
  • admin_key (str): A valid Admin API key for the VU1 Dials Server

Methods:

  • provision_dials(): Provisions new dial hardware
  • list_api_keys(): Lists all VU Server API keys
  • remove_api_key(target_key): Removes an API key
  • create_api_key(name, dials): Creates an API key (see value in return)
  • update_api_key(name, target_key, dials): Updates an API key

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please make sure to update tests as appropriate and follow the code style guide.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • Many thanks to Aaron D. and Christopher K.!

License & Author

Copyright (c) 2025 Erin L. Kolp

Licensed under the MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

vudials_client-2025.9.3.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

vudials_client-2025.9.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file vudials_client-2025.9.3.tar.gz.

File metadata

  • Download URL: vudials_client-2025.9.3.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for vudials_client-2025.9.3.tar.gz
Algorithm Hash digest
SHA256 cc4943ebe9a8af9baa2cdd04f34a8238055fca295818069844069327efbd27ed
MD5 aa3a84f948d6b406c9382dd58ea74b73
BLAKE2b-256 c176e70c060ffd277006876539af07608d6587b29fef6309d03fccea62953430

See more details on using hashes here.

File details

Details for the file vudials_client-2025.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for vudials_client-2025.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 adf09ceed3a748c43a5a88c735d1a997bcc0c5a19e3c107b12abc2dc06c17c7d
MD5 78946778257043c114898d4c957d11c1
BLAKE2b-256 d4cc98b859ebeec98e86f0286f943b56d5776b18338422d7167f5901e4341f59

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