Registry / communication / python-xsense

python-xsense

JSON →
library0.0.17pypypiunverified

Python module to control XSense air purifiers and sensors. Current version 0.0.16, released irregularly with small feature updates.

pip install python-xsense
INSTALL
IMPORT
SIG · PYTHON-XSENSE
P
python-xsense
communicationpythonv0.0.17
Install
5.6s avg
Import
—
Disk
70MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.0.17 · 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 · 71MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 5.6s · import 0.000s · 71MB
70MB installed
● package 70MB
Code
Verified usage

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

XSenseDevice
✓ from xsense import XSenseDevice
✗ from xsense import XSenseDevice

Login, fetch devices, and print their names.

import asyncio from xsense import XSenseDevice, XSenseStation async def main(): station = XSenseStation() await station.login('username', 'password') await station.update_devices() for device in station.devices: print(device.name, device.type) asyncio.run(main())
Debug
Known issues
gotchaLibrary uses asyncio; all methods are async and must be awaited. Calling them without await will return coroutine objects, not raise errors.
fix
Always use async/await or asyncio.run().
affects: all
breakingThe 'XSenseDevice' class changed in 0.0.14; attributes like 'name' now return property objects instead of strings if not properly awaited. Version 0.0.16 still has this risk.
fix
Ensure station.update_devices() completes before accessing device attributes.
affects: >=0.0.14
deprecatedThe 'get_devices()' method on station is deprecated in favor of 'update_devices()'.
fix
Use station.update_devices() and then station.devices list.
affects: >=0.0.12
Upgrade
Version history
0.0.17latest on PyPI · released May 12, 2026
Audit
Dependencies
aiohttprequiredAsync HTTP client for API calls
Agent activity
26 hits · last 30 days
node
22
Amazon
1
OpenAI (training)
1
Resources
python-xsense — pip install python-xsense · libregistry