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-2.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-2.3-py3-none-any.whl (30.4 MB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for webtoapklib-2.3.tar.gz
Algorithm Hash digest
SHA256 ef97af6e07e05f852e4a64ea642169f97a024b0f53ac415fe7bff4116c50bec0
MD5 1f126379f0a28b10e258a3059a693adc
BLAKE2b-256 45c0ce192292a4b5fdc8eaf5fcfac820a25f15af8a2fd362b5004ac26503abea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: webtoapklib-2.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.12.12

File hashes

Hashes for webtoapklib-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 396912d45c1be12c65c4a660c10573be26039ca69eb03298a47e17121d7221b6
MD5 9145e541710a7cdc0e9930b653f3dbde
BLAKE2b-256 68a1fe184be980cd49bf630f90959836b1fbaff818ffd2ade04f6b02bd961876

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