No project description provided
Project description
kivy-reloader
Hot reload your Kivy app on multiple phones and computer in real-time.
This tool allows you to instantly update your Kivy app on multiple devices simultaneously by pressing Ctrl+S
, saving your precious development time and effort.
How to use
from kivy_reloader import App
class MainApp(App):
def build_and_reload(self, initialize_server=False, *args):
from screens.main_screen import MainScreen
return MainScreen(name="Main Screen")
MainApp()
https://github.com/kivy-school/kivy-reloader/assets/23220309/f1459d7e-ca53-4ed6-b4d1-980cdae4ce16
Prerequisites
Install scrcpy
on your operating system: Linux, Windows or macOS. You will be able to control your device from your computer.
Install kivy
: choose your operating system on Kivy School Tutorial.
Installing the project
Clone this project, open the folder on terminal and type:
poetry shell
poetry install
Configure the constants
Open the file constants.py
and put the IP of your phone on the PHONE_IPS
constant. You can find the IP of your Android phone on: Settings > About phone > Status > IP Address.
How to use:
- Connect your phone to the computer using a USB cable.
- Run on the terminal
python compile_app.py
, type1
and press enter. Buildozer will compile the app and deploy on your phone. - Once the app is on your phone, run
python main.py
and the hot reload will be already working. Just pressCtrl+S
in any file insidescreens
folder ormain.py
and your app will be updated on computer and phone at the same time.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for kivy_reloader-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60cbfdfde7292261a031a105805d68c83234576f97cfdc418d8a452d97d85d96 |
|
MD5 | e42400246cc75cab1c65f385a15ad13a |
|
BLAKE2b-256 | 6457eafd2ca54ae95b870f6e584663ee84ea067c6ef0ec5ada966b6eb2f1bd92 |