Skip to main content

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 .jks file 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

webtoapklib-1.3.tar.gz (30.4 MB view details)

Uploaded Source

Built Distribution

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

webtoapklib-1.3-py3-none-any.whl (30.4 MB view details)

Uploaded Python 3

File details

Details for the file webtoapklib-1.3.tar.gz.

File metadata

  • Download URL: webtoapklib-1.3.tar.gz
  • Upload date:
  • Size: 30.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for webtoapklib-1.3.tar.gz
Algorithm Hash digest
SHA256 78d73db4f39ae8e0c6a56ea7b31e5e02b74a0b150e283092c9180b415a5b0461
MD5 2771470380a355fb44bf355c33d83b95
BLAKE2b-256 8c0a8791d859b6bd52373d8da78c5a3c9fcbb9ec0794545f6c24014094dc2ec5

See more details on using hashes here.

File details

Details for the file webtoapklib-1.3-py3-none-any.whl.

File metadata

  • Download URL: webtoapklib-1.3-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.14.0

File hashes

Hashes for webtoapklib-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4ee796ad0bf834a826e39ea80d0278db68b75bfd5f037d340da028631587e3
MD5 a75a795b5a716d93410233791fe5b714
BLAKE2b-256 4510ffe08f97f99490c0ecf5f01a14616146db4a4eb683a3ca6c2966190b9801

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