A simple framework to build Android apps using Python and CSS-like styling
Project description
🚀 ApkPy — Build Android UIs with Pure Python
ApkPy is a lightweight framework designed to bridge the gap between Python logic and Native Android UI. It translates your Python code directly into Production-Ready Java, allowing you to structure Android activities without touching a single line of XML or Java manually.
🔥 Key Features ⚡ Zero XML: Forget about complex layout files. Define your UI in Python, and let ApkPy handle the Java generation.
📱 Native Components: Not a web-view! These are real Android native components.
🎨 Style Integration: Built-in CSS-like parser to handle your app's look and feel.
🛠️ CLI Powered: Use the built-in command line interface to scaffold and build your projects instantly.
🏗️ Supported UI Elements Text: text("Hello") — Renders as an Android TextView.
Button: button("Click Me") — Renders as an Android Button.
Input: input_field(type="text") — Renders as a standard EditText.
Password: input_field(type="password") — Renders as an EditText with secure masking.
Search: input_field(type="search") — Renders as a native SearchView.
Range: input_field(type="range") — Renders as an Android SeekBar.
Checkbox: input_field(type="checkbox") — Renders as a native CheckBox.
Radio: input_field(type="radio") — Renders as a native RadioButton.
💻 Fast Example Python from apkpy_lib.ui import text, button, input_field from apkpy_lib.core.compiler import Compiler
Define your layout
my_app = [ text("Welcome to ApkPy", id="title"), input_field(id="user_login", type="text", placeholder="Username"), input_field(id="user_pass", type="password", placeholder="Password"), button("Login", id="login_btn") ]
Compile to Native Java
compiler = Compiler(output_dir="my_android_project") compiler.compile(my_app) 📥 Installation
pip install apkpy To upgrade to the latest version (0.1.1) with new input types:
pip install --upgrade apkpy
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apkpy-0.2.0.tar.gz.
File metadata
- Download URL: apkpy-0.2.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ad6a36fd5d1ada084ab4d99ea853fdc8b54babea3ba6b1725ba54f53434dd46
|
|
| MD5 |
592efd79e84b3f08feedddc4c7c4d122
|
|
| BLAKE2b-256 |
79a7d5f15b793f9e238a03dd7e551f011ff6264b68b34c640466700faccd0ce8
|
File details
Details for the file apkpy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: apkpy-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28510c96c55083a9ff7eafae7e465bf0959c8acc09740792e7d5a66c1fd078c4
|
|
| MD5 |
3d7a1e6b42e6e7edf218459e0547061e
|
|
| BLAKE2b-256 |
07023f58ab1691eda816dd22f35b81306833b75e449a4d9b85d3a5685519ab9e
|