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 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


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.1.1.tar.gz (7.8 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.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file binho-host-adapter-0.1.1.tar.gz.

File metadata

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

File hashes

Hashes for binho-host-adapter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 80197b5fb09575adb89c1255b8064c71d8597ec65521746b2098144289185bcf
MD5 3416202ec22dd8670d5a08e615429311
BLAKE2b-256 ae7d5d2880b88378710d3d20c23c3e704e4cd86bb8f9fb3668710b1721993b78

See more details on using hashes here.

File details

Details for the file binho_host_adapter-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: binho_host_adapter-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for binho_host_adapter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fafa293acda955638163c80d6694b17ee07991d6b5502ad92955ba5fd30874ef
MD5 467331da7f2634a63e8003b1cab5d6f5
BLAKE2b-256 bfa25c9de8c7ccdba57738feebff7d66ca163f2fb4dd501c5185956f2ccb49a0

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