Skip to main content

Radiant-Wrapper

Project description

Radiant-Wrapper

Radiant-Wrapper is a Docker image that allows you to generate APKs for Android. It's essentially a wrapper for python-for-android with all dependencies included. This tool has the ability to compile three kinds of projects:

  1. Static HTML - Projects with an index.html file
  2. Django Projects - Web applications built with Django
  3. Python Projects - Any Python project that implements a main.py file

Installation

Pull the Docker image that includes the Android NDK and SDK:

docker pull dunderlab/radiant_p4a.py

Then install the Python package to use the wrapper command:

pip install radiant-wrapper

Usage

The radiant_p4a command replaces the standard p4a command and runs it inside the Docker container:

radiant_p4a.py apk --arch arm64-v8a

Project Types

Static HTML

If your project contains an index.html file, Radiant-Wrapper will automatically create a main.py file that sets up a simple HTTP server to serve your static files.
For a complete example of a static HTML project, see: https://github.com/dunderlab/radiant-html_template

Django Projects

If your project contains a Django application (identified by the presence of manage.py), Radiant-Wrapper will set up the necessary environment to run your Django app on Android.
For a complete example of a Django project, see: https://github.com/dunderlab/radiant-django_template

Python Projects with main.py

If your project already has a main.py file, Radiant-Wrapper will use it directly to build your Android application.

GitHub Workflow for Automated APK Generation

A GitHub workflow is available to automate the APK generation process. When added to your repository, this workflow will automatically build an Android APK for your project on every push or when manually triggered. The workflow handles all project types (Static HTML, Django, and Python with main.py) and uploads the generated APK as an artifact.

To use this workflow, copy the radiant_wrapper.yml file to your repository's .github/workflows/ directory.

Software Versions Included in the Image

NDK_VERSION=r25b
SDK_VERSION=10406996_latest
JAVA_VERSION=jdk17-openjdk
NDKAPI=30
ANDROIDAPI=30
BUILDTOOL=34.0.0
P4A_VERSION=2024.1.21
CYTHON_VERSION=3.0.4

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

radiant_wrapper-0.1a7.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

radiant_wrapper-0.1a7-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file radiant_wrapper-0.1a7.tar.gz.

File metadata

  • Download URL: radiant_wrapper-0.1a7.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for radiant_wrapper-0.1a7.tar.gz
Algorithm Hash digest
SHA256 19afcd63c142c20b1c660f9417d1cf469eeb6032995fca7b208724aeefbec0bc
MD5 bca249fdb252802dbf328674dadd656d
BLAKE2b-256 64352a85a7cfc9a7ac8ade4a9c093e2d98da0404aea6355f490443816c914372

See more details on using hashes here.

Provenance

The following attestation bundles were made for radiant_wrapper-0.1a7.tar.gz:

Publisher: python-publish.yml on dunderlab/python-radiant_wrapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file radiant_wrapper-0.1a7-py3-none-any.whl.

File metadata

File hashes

Hashes for radiant_wrapper-0.1a7-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8ec688af30976ad8e445dbf1bc8fa7e2c6eb68864b0918425fc34facf5c135
MD5 72a594216d6b201f6d766a0b1fb0c3da
BLAKE2b-256 3ca245f39a374996ff2cb442bbfb8c8f7aeecf2bafdc28d1c2a98abfdc434f2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for radiant_wrapper-0.1a7-py3-none-any.whl:

Publisher: python-publish.yml on dunderlab/python-radiant_wrapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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