A lightwight python control module for MCD USB Hubs
"USB Hub 2.0 6-Port, Switchable"
This python module controls the switches of usb hub. This very first release supports only a basic functionality such as enable and disable a port. The control interface would support much more functionality.
For more details on the hub see: https://www.mcd-elektronik.com/products/conline-control-systems/usb-hub-20-6-port-switchable.html
How to use this module
The usage of the python module is shown in the very basic ./examples/example.py
Installation
From PyPI
Download and install the latest package:
pip3 install mcd_usb_hub_ctrl
From the sources:
python the first time
Install the python interpreter
On windows download the actual python interpreter from python.org. Do not use the automatic windows installer to install python. On Linux install python with the package manager of your os.
Create a virtual python environment
This has only to be done once to create the virtual environment
python3 -m venv .venv
Init the python virtual environment
This is needed every time you open the shell
On linux systems
source .venv/bin/activate
On windows systems
.venv\Scripts\activate
Get the required packages to be up and running
This has only to be done once to use the lib
pip install -r requirements.txt
And for dev purposes some additional packages:
pip install -r requirements_dev.txt
Build the whl-file
Then finally as soon as you have installed all dependencies, run make build to compile the wheels file and install it with pip.
make build
pip install ./build/mcd_usb_hub_ctrl-<version>-none-any.whl
Metadata
Release files for mcd-usb-hub-ctrl 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcd_usb_hub_ctrl-0.2.0.tar.gz | 2.6 MB | Without provenance | Details for mcd_usb_hub_ctrl-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcd_usb_hub_ctrl-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for mcd_usb_hub_ctrl-0.2.0-py3-none-any.whl |
Total release size: 2.6 MB
Release files / mcd_usb_hub_ctrl-0.2.0.tar.gz
| Download URL | mcd_usb_hub_ctrl-0.2.0.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fd9bf0971295026b2920a052219deef96e3f9948d63401c6601db3514b589fc
|
|
BLAKE2b-256 checksum How to use checksums |
43ec5ff43791082addca89d2a024a9864d2c3d1b5afc7c4967e53995dd0b9eae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / mcd_usb_hub_ctrl-0.2.0-py3-none-any.whl
| Download URL | mcd_usb_hub_ctrl-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4955fff9ab37aef294512ceae9751ce29f84d7a06f41ef8832488a329021095
|
|
BLAKE2b-256 checksum How to use checksums |
ce72c9a5e36d6bb8b80dd7aa4dd55920088c5c889af6b4f176eaca3be4e0f849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for mcd-usb-hub-ctrl 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.