Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 713 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 713 Bytes

liboxide on PyPI

Python wrapper around the oxide command line tools

Installation

pip install liboxide

Usage

import liboxide

liboxide.wifi.enable()

print("Applications:")
for name, app in liboxide.apps.applications.items():
    print(f"  {name}: {app.bin}")

autoLock = liboxide.settings.get("autoLock")
print("Automatically locking after {autoLock} minutes")

print(f"Battery level: {liboxide.power.batteryLevel}")
while True:
    batteryLevel = liboxide.power.on.batteryLevelChanged()
    print(f"Battery level: {batteryLevel}")