Python Libraries for Binho Multi-Protocol USB Host Adapters
Project description
Binho Host Adapter Python Libraries
Introduction
Cross-platform Python 3.x library for automated control of binho multi-protocol USB host adapters. More information about the hardware can be found at https://www.binho.io
Dependencies
This library requires pySerial for cross-platform access of the serial port. This can typically be installed simply by running the following command:
pip install pyserial
Installation
This library can be installed easily with the following command:
pip install binho-host-adapter
Example Usage
from binhoHostAdapter import binhoHostAdapter
from binhoHostAdapter import binhoUtilities
print("Demo Script with Binho Host Adapter Python Libraries")
print
utilities = binhoUtilities.binhoUtilities()
devices = utilities.listAvailableDevices()
if len(devices) == 0:
print("No Devices Found!")
exit()
elif len(devices) == 1:
COMPORT = devices[0]
print("Found 1 attached adapter @ " + devices[0])
print
else:
COMPORT = devices[0]
print("Found more than 1 attached adapter, using first device found on " + COMPORT)
print
print("Opening " + COMPORT + "...")
print
# create the binhoHostAdapter object
binho = binhoHostAdapter.binhoHostAdapter(COMPORT)
print("Connecting to host adapter...")
print(binho.getDeviceID())
print
Documentation
The full set of documentation for this python library can be found at https://support.binho.io/python-libraries
Releasing an updated package to PyPI
Packaging and releasing a new build version for distribution can be acheived by following the procedure here: https://packaging.python.org/tutorials/packaging-projects/
Be sure to increment the version in the setup.py
file before building the distribution using the commands below.
Dependencies for the packaging/distribution process can be installed with the following commands:
pip install --upgrade setuptools
pip install --upgrade wheel
pip install --upgrade twine
Building and releasing a package can be achieved with the following commands:
python setup.py sdist bdist_wheel
python -m twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for binho-host-adapter-0.0.1.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9b3a9fefcfbf5e20f07ad063b2292f0702155829d123ceb84cb426c4ce35154 |
|
MD5 | fe172e36f76dda255205d92be77d088f |
|
BLAKE2b-256 | 9270feec50031e921e759b4cb22ec2a3bbecdc04a4d57b199f67dc8744921312 |
Hashes for binho_host_adapter-0.0.1.dev1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 052603689f740e2558a4821da859b9ec26402e91734e5a861fa70ab2888dbebf |
|
MD5 | f25347080c35fe5927305d6e095f9d39 |
|
BLAKE2b-256 | 2a3a0696eb51f9a82b22afdca773a2b932a3e1991abb0d2131255b28e56de0c6 |