The definitive RockBLOCK Python 3 package.
Project description
pyRockBLOCK
pyRockBLOCK is the definitive Python 3 library for users of the RockBLOCK.
Requirements
Python 3.6 and newer
Installation
This installs a package that can be used from Python (import pyRockBlock).
To install for all users on the system, administrator rights (root) may be required.
From PyPI
pyRockBlock can be installed from PyPI:
python -m pip install pyRockBlock
Connecting to your RockBLOCK
Once your rockBLOCK has been connected to your device via USB you will need to find its local address.
Linux / macOS
List all local devices:
ls /dev/tty*
The name will vary depending on machine but will generally include USB in the name (e.g. /dev/ttyUSB0 or /dev/tty.usbserial-FTH9I1S5)
Windows
List COM devices:
mode
When connected to my machine the port was COM6 but this will vary, it can be helpful to run the command before connecting to see what port becomes active.
Starting pyRockBLOCK
Once you have the address of your device, create an instance of RockBlock and call the connect method:
from pyRockBlock import RockBlock rb = RockBlock(<device address>) rb.connect()
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
Built Distribution
File details
Details for the file pyrockblock-1.0.6.tar.gz
.
File metadata
- Download URL: pyrockblock-1.0.6.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 984ff768af1f20ed03e8f123a037b4e5c9f98bad21264aa81b05b3b0e58e5fdf |
|
MD5 | 61967210410292912da34e6ea966689d |
|
BLAKE2b-256 | 9649c9f9f6f7d66b309a59be541d486f0f632e9963f539d22ba0784caa94e091 |
File details
Details for the file pyRockBlock-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: pyRockBlock-1.0.6-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebd6e9766ba2f10a0dfeed2677e7df7416cbcfb0dd5351b6f65d89eddbcb3b98 |
|
MD5 | 9fbb47cd88d8087b98b7c7dda528c8b1 |
|
BLAKE2b-256 | 018d8e3f53a42b16ad27cf5137244e8215e9c066d07737fce7fbccee92844578 |