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.4.tar.gz (7.2 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.4-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: binho-host-adapter-0.1.4.tar.gz
  • Upload date:
  • Size: 7.2 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.4.tar.gz
Algorithm Hash digest
SHA256 b30461a6d98f30877aec7388a39df5c786b1701a2bc28dd76957178875a2e196
MD5 b4226a6eddc030a47271e0b7e3954f16
BLAKE2b-256 3930648c4444fab7a60818ea9cb0ad26151e40fd9c0d33ca9c39ddb42b0988a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: binho_host_adapter-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 85a028f4ddb7bfa87d88d4e3618bb48ba9385c89345230ac7668c8c61f5d4f9d
MD5 9c8b07ca3058462c76be306201cedaad
BLAKE2b-256 73e146bf5ae0ebe44f760a82a99c8bfc1bb20f1223e0d7a445749d4c0689678c

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