Kaki - Advanced application library for Kivy
This library enhance Kivy frameworks with opiniated features such as:
- Auto reloading kv or py (
watchdogrequired, limited to some uses cases) - Idle detection support
- Foreground lock (windows only)
Installation
pip install kaki-cli
Example
This is a bootstrap that will:
- automatically declare the module
live.ui(live/ui.py) as a provider for the widgetUI - build the application widget, and show it to a window
If the bootstrap is started with the environment variable DEBUG=1, it will start a watchdog, and listen for changes, according to AUTORELOADER_PATHS.
When something changes, the current application widget will be cleared out, and a new one will be instanciated, after reloading.
kaki run # deploy app and run hotreload
kaki run --build # build, deploy and run hotreload
Idle Management
The idle detection feature is designed to trigger an action if the user has not touched the screen for a certain period of time. This can be used to display an attractor screen, screensaver, or other content.
To enable idle detection, set the IDLE_DETECTION configuration to True.
Kaki will then listen for touch down/move events. If no such events occur within the IDLE_TIMEOUT interval, or if the rearm_idle function has not been called, the on_idle event will be triggered on the application class. If a touch event occurs or rearm_idle is called while the system is in idle mode, the on_wakeup event will be triggered on the application class.
If you are playing a video and do not want idle detection to be triggered, you can use the rearm_idle function on the application class to reset the idle timer to 0 seconds.
Metadata
Release files for kaki-cli 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kaki_cli-1.0.9.tar.gz | 11.8 kB | Without provenance | Details for kaki_cli-1.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kaki_cli-1.0.9-py3-none-any.whl | Python 3 | none | any | Details for kaki_cli-1.0.9-py3-none-any.whl |
Total release size: 24.8 kB
Release files / kaki_cli-1.0.9.tar.gz
| Download URL | kaki_cli-1.0.9.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
513179b1978a6d379d1682c69a8fbd7f55c13af997102f9ea41552f7c3a65152
|
|
BLAKE2b-256 checksum How to use checksums |
e9d40e2f72b3dd7d68370835d003f4f15d33459aa75ecbce577f18850fe436ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-135-generic
|
Release files / kaki_cli-1.0.9-py3-none-any.whl
| Download URL | kaki_cli-1.0.9-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a39e54a386174baf91214eea19f1c2b55460c9b9f42529bc517e60b9d7b10a09
|
|
BLAKE2b-256 checksum How to use checksums |
9ea2e17552f083e9c496d1f62d2787c36dd0000417f7d960d51b0860195dd506
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/5.15.0-135-generic
|
Security for kaki-cli 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.