pyBittle
pyBittle is an Open Source Python library for easily connecting to Bittle and controlling it. This library provides a set of methods to communicating with Bittle through Bluetooth and WiFi, allowing to control it remotely.
In-depth documentation and usage examples: pyBittle.
Usage example
Connecting to Bittle and sending commands is as easy as shown below:
bittle = pyBittle.Bittle() # This is your Bittle
is_connected = bittle.connect_bluetooth() # Returns True if Bittle is connected to your computer
if is_connected:
greet_command = pyBittle.Command.GREETING # This is 'khi' message to be sent
bittle.send_command_bluetooth(greet_command) # Send 'khi' message through Bluetooth
bittle.disconnect_bluetooth()
bittle = pyBittle.Bittle()
bittle.wifiManager.ip = '192.168.1.241' # This is your Bittle's IP address
push_up_command = pyBittle.Command.GREETING # This is 'kpu' message to be sent
has_connection = bittle.has_wifi_connection()
if has_connection:
bittle.send_command_wifi(push_up_command) # Send 'kpu' message through WiFi
Installation
pyBittle has the following dependencies: PyBluez and pySerial, install them manually using the following commands:
sudo apt-get install libbluetooth-dev
sudo apt-get install python-dev
pip install pybluez
pip install pyserial
git clone https://github.com/EnriqueMoran/pyBittle.git
pip install .
Or install automatically using the following command:
pip install pyBittle
Metadata
Release files for pyBittle 1.1.3
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 |
|---|---|---|---|---|
| pyBittle-1.1.3.tar.gz | 8.2 kB | Without provenance | Details for pyBittle-1.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyBittle-1.1.3-py3-none-any.whl | Python 3 | none | any | Details for pyBittle-1.1.3-py3-none-any.whl |
Total release size: 18.5 kB
Release files / pyBittle-1.1.3.tar.gz
| Download URL | pyBittle-1.1.3.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
244cf15ac016f5821047a648c1ff92773174af9f793e1d0eba80dbdbc289a377
|
|
BLAKE2b-256 checksum How to use checksums |
22dbd0d766013a17e538d04db50b8a461e9d08ccf944603a3eb086a9de0ce98a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
|
Release files / pyBittle-1.1.3-py3-none-any.whl
| Download URL | pyBittle-1.1.3-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9f5cda58ec976f0ea6dd97ae5c922e5a5342159346e3d07645a2b2ca3a1aa08
|
|
BLAKE2b-256 checksum How to use checksums |
4f901b30f99a1250bb6266f8b8dee4f27d7a1cda5cca1fe2656aaea4b69d07aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
|
Security for pyBittle 1.1.3
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.