Skip to main content

A simple framework to build Android apps using Python and CSS-like styling

Project description

APKPy 🚀

A lightweight Python framework to build Android apps with a simple syntax and CSS-like styling.

APKPy allows you to create mobile interfaces using Python functions and style them with a CSS-inspired syntax, providing a real-time preview on Windows before compiling to Android.

Installation

pip install apkpy
Quick Start
Create a file named writehere.py:

Python
from apkpy_lib.ui import button, input_field, run

# Define your styles
style = """
main_button {
    background-color: blue;
    color: white;
}
"""

# Build your UI
input_field(placeholder="Enter your name")
button("Click Me", id="main_button")

# Run the Windows preview
run()
How to Run
To see your app preview on Windows, simply run:

Bash
python writehere.py
To build your Android project (APK structure):

Bash
apkpy build
Features
Python-based UI: No need to learn complex XML.

CSS Styling: Easy styling with a familiar syntax.

Instant Preview: See how your app looks on Windows immediately.

Android Ready: Transpiles your Python code into native Java code.

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

apkpy-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apkpy-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file apkpy-0.1.0.tar.gz.

File metadata

  • Download URL: apkpy-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for apkpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a04fe48d9c3ad8c58360d869dc705a47c6da2f1f21d0a5be44ce00fc2b6b5c59
MD5 2d00836ce5c900faa915498c3c1ca726
BLAKE2b-256 6cc05a9411ddd2e4dff1dd312dbe49a3e6ef035dd18a90c19de2914b18ea0f21

See more details on using hashes here.

File details

Details for the file apkpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: apkpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for apkpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0514e9d1d24f480590492d5b2f163884bd4e6a777e2f813371730315376aa3
MD5 546b260d2d4b3f4e4a7a6da14cba35e4
BLAKE2b-256 267619faf149acf06e3a6ed855808b96a5f1b37894da1253abaf3f92dcdb8410

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page