A powerful Python library to convert websites into Android APKs with auto-signing.
Project description
WebToApkLib
WebToApkLib is a powerful Python library that converts any website URL into a fully functional, signed Android APK file.
It handles the complex work of decompiling, modifying manifest files, updating resources, rebuilding, and signing the APK automatically.
Features
- One-Line Conversion: Convert a URL to an APK with a single function call.
- Auto-Signing: Comes with a bundled debug keystore, so generated APKs are installable immediately.
- Custom Keystore Support: Use your own
.jksfile for Play Store production builds. - Smart Manifest Handling: Automatically avoids package conflicts.
- Splash Screen Support: Easily add your own splash screen and icon.
Prerequisites
- Python 3.7+
- Java (JDK 8 or newer): Must be installed and added to your system PATH (required for apktool and signing).
📦 Installation
pip install webtoapklib
## Usage Example
1. Basic Usage (Auto-Signed)
This is perfect for testing. It uses the bundled debug key, so you don't need to configure anything.
from webtoapklib import APKConverter
converter = APKConverter()
converter.convert(
url="https://www.google.com",
app_name="MyAwesomeAPP",
icon_path="app_logo.png",
splash_logo_path="splash_screen.png",
splash_bg_path="splash_bg.png",
output_dir="output",
splash_time_sec=3
)
Production Usage (Custom Keystore)
Use this when you are ready to publish to the Google Play Store.
Python
apk_path = converter.convert(
url="[https://your-website.com](https://your-website.com)",
app_name="My Production App",
icon_path="icon.png",
splash_logo_path="logo.png",
splash_bg_path="bg.png",
output_dir="dist",
# Custom Signing Credentials
keystore_path="my-release-key.jks",
keystore_pass="mypassword",
key_alias="mykey"
)
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 webtoapklib-2.4.tar.gz.
File metadata
- Download URL: webtoapklib-2.4.tar.gz
- Upload date:
- Size: 30.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
561035f960c9eb1f87fbe342ad71ab2da3a684772dcc12d5c924d64105190167
|
|
| MD5 |
f13396bab58ca73e630873312a70444c
|
|
| BLAKE2b-256 |
e22860907c7a2e2f4abbcf93839125b8ef96fe152b99122119c1d8d6ccc75eb7
|
File details
Details for the file webtoapklib-2.4-py3-none-any.whl.
File metadata
- Download URL: webtoapklib-2.4-py3-none-any.whl
- Upload date:
- Size: 30.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f410719f0e010e216a7238e29c4d9ab6d8d12a009ccb7cf1cc046ad7c0ce6c0d
|
|
| MD5 |
695c3f004d0a653eaddd1b25b9cfc301
|
|
| BLAKE2b-256 |
aba9ebc5de57e92e98a716d402f0f1cfee8075d789a45722da4e89573cfb7bdd
|