Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Control the Anova Nano via BLE.
This is a rough translation of dengelke/node-sous-vide.
The device should be found automatically based on the service uuid it provides.
import asyncio
from pyanova_nano import PyAnova
async def print_device_sensors():
async with PyAnova() as client:
print(await client.get_sensor_values())
asyncio.run(print_device_sensors())
import asyncio
from pyanova_nano import PyAnova
async def get_unit():
client = PyAnova()
await client.connect()
print(await client.get_timer())
await client.disconnect()
asyncio.run(get_unit())
To use a custom address, first discover all relevant devices, then use PyAnova.connect(device=my_anova)
with
my_anova
being the bleak.BLEDevice
you want to connect to.
import asyncio
from bleak import BLEDevice
from pyanova_nano import PyAnova
async def print_target_temp():
client = PyAnova()
devices: list[BLEDevice] = await client.discover(connect=False, list_all=True)
# Select the device to use.
my_anova = next(iter(devices))
print(f"Found: {my_anova.address}")
await client.connect(device=my_anova)
temperature = await client.get_target_temperature()
print(temperature)
await client.disconnect()
asyncio.run(print_target_temp())
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.
FAQs
Python API to interact with the Anova Nano.
We found that pyanova-nano demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.