Python tools to control gpio pins on pl2303, cp210x and (maybe) others.
Introduction
Remember those cheap usb-to-uart modules that have gpio pins? Want to control them from your app in linux, windows and (hopefully) mac. Old pl2303gpio doesn’t get the job done? This library aims to fix the problems.
Hardware support matrix
| Chip(s) | Driver | Windows | Linux | Mac OS |
|---|---|---|---|---|
| PL2303HXA | pl2303 | Yes | Yes | Maybe |
| CP210x | cp210x | WiP | Yes | Maybe |
Installation
Requirements
Any recent python 3.x. 3.7 and above should be good. Please report you successes so that I can add the information here.
Linux (and mac, perhaps) versions need pyusb. Windows versions need Visual Studio Build Tools installed. It’s a huge download, but it’s needed. Grab it at Microsoft download site.
Building Installing python module
pip install .
This library will be uploaded to pypy once inital work and porting code from pl2303gpio is done.
pip install pygpiotools
Using commandline tool
TODO
API and examples
TODO
Authors
Andrew Necromant Andrianov <andrew@ncrmnt.org> - pl2303/cp2102 gpio code and initial implementation
License
TBD
Metadata
Release files for pygpiotools 0.1.33
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygpiotools-0.1.33.tar.gz | 8.4 kB | Without provenance | Details for pygpiotools-0.1.33.tar.gz |
Release files / pygpiotools-0.1.33.tar.gz
| Download URL | pygpiotools-0.1.33.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b93b3ab266f922a399d153fa0973b1466cd7dae9848b4e5046ceca6ac0b334a1
|
|
BLAKE2b-256 checksum How to use checksums |
cd73d1f809b5db163e6876fd62875ec10ab3f8f2c8b855601d7fcc0a83d9e3ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.2
|
Security for pygpiotools 0.1.33
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.