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.3.tar.gz (7.1 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.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: binho-host-adapter-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

File hashes

Hashes for binho-host-adapter-0.1.3.tar.gz
Algorithm Hash digest
SHA256 40a242282d013b3b984799c36436077103f44bf612c063c60abfbd06c8c86e2b
MD5 251f05594274dcf6e75950b6906858f0
BLAKE2b-256 57a90ea78a1954407067690a923157e064a263713017c600c9d7674d7dac2f1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: binho_host_adapter-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

File hashes

Hashes for binho_host_adapter-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab9e8a5dcd4443be6e28372d00f347932ad05e77695507ba7604fe2c0da9ba3b
MD5 7601b10aa848f5a69def9765d3702e42
BLAKE2b-256 b441f0a45b411748832730138ff0f4265a640416357ea9660f6c762f980a1893

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