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 library will be installed automatically by pip, however for easy reference, this can be manually 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.2.dev3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f306a2664ce725d407241ad051f0b7a115672a45e0183d5452c6232063b121fe |
|
MD5 | 2ff03aac0dd3194e345b9905d88a60a6 |
|
BLAKE2b-256 | abd4419d73a0668135a432c806ea206fce616f7acfca3cc6d559713739b201c3 |
Hashes for binho_host_adapter-0.0.2.dev3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 833535b5ac2dc8a06d1195e133c01b710cd098d146e02fe344a956c5c4e4659c |
|
MD5 | a40622b99cf06571d694aa650883388b |
|
BLAKE2b-256 | 6ab93cba26a9a606b35b215095931e1c7d3dcc00087e992c23e80dd132cb55d2 |