Registry / database / yoctopuce

yoctopuce

JSON →
library2.1.13347pypypiunverified

Official Python API for Yoctopuce sensors and actuators. Provides access to USB and networked Yoctopuce devices. Current version 2.1.12672, released regularly.

pip install yoctopuce
INSTALL
IMPORT
SIG · YOCTOPUCE
Y
yoctopuce
databasepythonv2.1.13347
Install
1.9s avg
Import
—
Disk
32MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v2.1.13347 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 34MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 1.9s · import 0.000s · 35MB
32MB installed
● package 32MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

YAPI
✓ from yoctopuce import YAPI
✗ from yoctopuce.yapi import YAPI

Quickstart to list first Yoctopuce sensor. Preregister 'usb' for USB, or an IP address for networked hubs.

from yoctopuce.yapi import YAPI from yoctopuce.ysensor import YSensor # Register a hub (adjust as needed) YAPI.PreregisterHub('usb') # Use default hub URL 'usb' for USB devices YAPI.RegisterHub('usb') sensor = YSensor.FirstSensor() if sensor: print(f"Sensor: {sensor.get_friendlyName()}, value: {sensor.get_currentValue()}") YAPI.FreeAPI()
Debug
Known issues
breakingYAPI.PreregisterHub() may timeout with IPv6 addresses; use IPv4 or ensure DNS resolution works.
fix
Use IPv4 address explicitly, e.g., YAPI.PreregisterHub('192.168.1.10')
affects: >=2.1.11416
gotchaYAPI.RegisterHub() must be called after PreregisterHub() if using non-default hub.
fix
Always call YAPI.PreregisterHub() then YAPI.RegisterHub() for each hub.
affects: all
deprecatedYAPI.RegisterHub() without PreregisterHub() may be removed in future versions.
fix
Always use PreregisterHub before RegisterHub.
affects: >=2.0
Upgrade
Version history
2.1.13347latest on PyPI · released May 18, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
22
Anthropic
1
OpenAI (training)
1
Resources
yoctopuce — pip install yoctopuce · libregistry