python libusb多线程_libusb: Python binding for the libusb C library.

libusb

Python binding for the libusb C library.

Overview

Python libusb module is a low-level binding for libusb C library.

It is an effort to allow python programs full access to the API implemented

and provided by the well known *libusb* library.

libusb is a lightweight Python package, based on the ctypes library.

It is fully compliant implementation of the original C libusb 1.0 API

by implementing whole its functionality in a clean Python instead of C.

libusb API 1.0 documentation can be found at:

About original libusb:

Borrowed from the original website:

libusb - A cross-platform user library to access USB devices

Overview

libusb is a C library that provides generic access to USB devices.

It is intended to be used by developers to facilitate the production of

applications that communicate with USB hardware.

It is portable: Using a single cross-platform API, it provides access

to USB devices on Linux, OS X, Windows, Android, OpenBSD, etc.

It is user-mode: No special privilege or elevation is required for the

application to communicate with a device.

It is version-agnostic: All versions of the USB protocol, from 1.0 to 3.1

(latest), are supported.

What platforms are supported?

Linux, OS X, Windows, Windows CE, Android, OpenBSD/NetBSD, Haiku.

For additional information, please consult the

FAQ

or the Wiki.

Requirements

It is a fully independent package.

All necessary things are installed during the normal installation process.

ATTENTION: currently works and tested only for Windows.

Installation

Prerequisites:

Python 3.5 or higher3.7 with C libusb 1.0.22 is a primary test environment.

To install run:

python -m pip install --upgrade libusb

Development

Installation from sources:

clone the sources:

and run:

python -m pip install ./libusb

or on development mode:

python -m pip install --editable ./libusb

Prerequisites:

Development is strictly based on tox. To install it run:

python -m pip install --upgrade tox

License

Copyright (c) 2016-2020 Adam Karpierz

Licensed under the zlib/libpng License

Please refer to the accompanying LICENSE file.

Authors

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值