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

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.5.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.5-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: binho-host-adapter-0.1.5.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0

File hashes

Hashes for binho-host-adapter-0.1.5.tar.gz
Algorithm Hash digest
SHA256 037f5d45662ffeb3a5b657a794c4d8e76933f134ba732e0e95fafd1838d232a6
MD5 e985dadaadc73892ba11c5605d65400c
BLAKE2b-256 25b8639ca5d7d962b9e71efdcb87f76292c8420a2a6b58e448903e9a64660f78

See more details on using hashes here.

File details

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

File metadata

  • Download URL: binho_host_adapter-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.0

File hashes

Hashes for binho_host_adapter-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2bd7a46fb404e8f9f057fd0329bd1a041b854141e0a328bbd19fd78ccf6ff758
MD5 8d32720a9658cf4cb0d7a7827997df78
BLAKE2b-256 31d9595a435bc6eee3ce3e0cc23df8d5673a21b4b5e50b7a6f2b4a0c23dfed77

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