Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

binho-host-adapter-0.0.1.dev4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

binho_host_adapter-0.0.1.dev4-py2-none-any.whl (6.0 kB view details)

Uploaded Python 2

File details

Details for the file binho-host-adapter-0.0.1.dev4.tar.gz.

File metadata

  • Download URL: binho-host-adapter-0.0.1.dev4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15

File hashes

Hashes for binho-host-adapter-0.0.1.dev4.tar.gz
Algorithm Hash digest
SHA256 6c473d3506334a05bb398ac4b0409b280a69380265c19ee0556bf564385d084c
MD5 d708b92e70ab0598c91c5395b9dfd599
BLAKE2b-256 10ea4fcd2a265c15139f43d3cff87de5e04c93c1153e5941abe5d8eb7700f7f9

See more details on using hashes here.

File details

Details for the file binho_host_adapter-0.0.1.dev4-py2-none-any.whl.

File metadata

  • Download URL: binho_host_adapter-0.0.1.dev4-py2-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.15

File hashes

Hashes for binho_host_adapter-0.0.1.dev4-py2-none-any.whl
Algorithm Hash digest
SHA256 711e4964dc1ef9687010968bd8936bb086b335a76ef668b32e717a321aae1665
MD5 7902add23d1bb7ef03988d3cc6cc5dd2
BLAKE2b-256 95499cdcfeee9615e0516731c1bf3a1a02452e3a731d28d134a38b489077c9d3

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