Skip to main content

Controller for USB managed hubs

Project description

usbman

OpenSSF Scorecard

Software to control 'managed' USB hubs compatible with 'cuspi' closed source binary. For example:

StarTech.com managed hub

Installation

Using pypi

pip install usbman

Using a pre-built release

Place the binary in your PATH.

From source, using pyinstaller

This build a native package.

git clone https://github.com/sebastien-riou/usbman.git
cd usbman
pipenv sync
pipenv run ./package_usbman

Add dist/usbman in your PATH.

How to

Display the current state

This list the channels which are ON:

usbman --device-path /dev/ttyUSB0

Turn on some channels

This turns on channels 1 and 5:

usbman --device-path /dev/ttyUSB0 --on 1 5

Turn off some channels

This turn off channel 1 and 5:

usbman --device-path /dev/ttyUSB0 --off 1 5

Turn off some channels for some time and turn back on

This turn off channel 1 and 5 for 0.5 second:

usbman --device-path /dev/ttyUSB0 --off-pulse 1 5 --toff=0.5

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

usbman-1.1.0.tar.gz (279.7 kB view details)

Uploaded Source

Built Distribution

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

usbman-1.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file usbman-1.1.0.tar.gz.

File metadata

  • Download URL: usbman-1.1.0.tar.gz
  • Upload date:
  • Size: 279.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for usbman-1.1.0.tar.gz
Algorithm Hash digest
SHA256 47ebc41a907551959dc1339cbe9190bc59f100cb29c82422e6eac843ae92e467
MD5 71619d21da9cda052139a672afd2cfa5
BLAKE2b-256 1459ab1b8136adc9dc28a1a17f9fe2440dd344beb2247303cfc935a66173fa67

See more details on using hashes here.

Provenance

The following attestation bundles were made for usbman-1.1.0.tar.gz:

Publisher: on-release.yml on sebastien-riou/usbman

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file usbman-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: usbman-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for usbman-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c087bda3f8d2f2d840413e12f9e263912480fceabc64218b27a7d6b5c6856026
MD5 1ad0fb1275e43020514063acdd8e8944
BLAKE2b-256 3e6dc4f73034613c61b2ba929d05d5afdba427a5eefb41c3cc6ed68e4ed84807

See more details on using hashes here.

Provenance

The following attestation bundles were made for usbman-1.1.0-py3-none-any.whl:

Publisher: on-release.yml on sebastien-riou/usbman

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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