Python wrapper around the oxide command line tools.
Project description
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}")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
liboxide-0.1.2.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file liboxide-0.1.2.tar.gz
.
File metadata
- Download URL: liboxide-0.1.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f9655db21ae02968d28e29dcf879ae4c8ac9d80562608482989e3006943d300 |
|
MD5 | f86f731ed53a0acc3714d205cc389203 |
|
BLAKE2b-256 | 9ea61ac408a58646967e5f3362e3e1a26d9a09e6c58e63256e6a625f6d3f2f49 |
File details
Details for the file liboxide-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: liboxide-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8384bd34bd0a61b18e1852196a92cfab5e30ab233545eeca1d3113b1424e4bb6 |
|
MD5 | a9457411ec6789b3711b9429d3c2948d |
|
BLAKE2b-256 | b69623356ad4deb2f38d74bd4c337ad9f926002c3d979ff487b71dfbfdb427ee |