pyanova
An Anova Precision Cooker (Sous Vide) Bluetooth API Python Wrapper
Descirption
This is a Python wrapper of the Anova Precision Cooker (Sous Vide) API via the Bluetooth LE connection. Under the hood, it utilizes peplin/pygatt for the Bluetooth LE communications.
The library is tested on C.H.I.P with Debian + Python 2.7 and Python 3.4
Acknowledgements
- This work relies heavily on the researches from dfrankland/sous-vide, a very nice API for Node JS. Commands used in pyanova are based on its research on the Android APP APK.
- Bluetooh LE communication is made easy with pygatt
Installation
Prerequisites
- pygatt - specifically, it uses the gatttool backend
- bluez - specifically, the gatttool backend requires hcitool, make sure you can find
hcitoolin your system.
Install using Python pip
Once the prerequisite are satisfied, you can install pyanova with pip: pip install pyanova
Usage
The GATTTool backend normally requires root permission. Hence you might need to run your program with root permission or setup passwordless sudo for 'hcitool'.
Automode
You can initialize PyAnova easily with automode which will automatically discover and connect to the first available Anova device
from pyanova import pyanova
pa = pyanova.PyAnova()
pa.get_status()
Manual mode
Alternatively, you can fully control the discover and connect phrases of an PyAnova object
from pyanova import pyanova
pa = pyanova.PyAnova(auto_connect=False)
devices = pa.discover(list_all=False, timeout=3)
pa.connect_device(devices[0])
pa.get_status()
TODO
- Unit tests
- Autogen docs
- Probably swtich to pygattlib?
Demo
see: samples/pyanova_terminal.py
Disclaimer
This software may harm your device. Use it at your own risk.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
Metadata
Release files for pyanova 0.2.0
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 |
|---|---|---|---|---|
| pyanova-0.2.0.tar.gz | 11.1 kB | Without provenance | Details for pyanova-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyanova-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pyanova-0.2.0-py3-none-any.whl |
Total release size: 22.6 kB
Release files / pyanova-0.2.0.tar.gz
| Download URL | pyanova-0.2.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5eb6f469a48780cd968d845e4ff401519a5d8cd801c981aed4957ee5ae937d38
|
|
BLAKE2b-256 checksum How to use checksums |
2132ec3a7981e1f97299242dadfa9994419df610bad224deabad997949ed88ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.4.2
|
Release files / pyanova-0.2.0-py3-none-any.whl
| Download URL | pyanova-0.2.0-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b31f153b4fbe206bb234a7043e34f0c1d9eae8e679c197fa889e5b1a9d6744b9
|
|
BLAKE2b-256 checksum How to use checksums |
ffd445352c491dbc047b523dbe8eff0af3fe9b16afc4e33455cce2cabb3c7fea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.4.2
|
Security for pyanova 0.2.0
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.