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:
- Static HTML - Projects with an index.html file
- Django Projects - Web applications built with Django
- 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
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
Release history Release notifications | RSS feed
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 radiant_wrapper-0.1a9.tar.gz.
File metadata
- Download URL: radiant_wrapper-0.1a9.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29f63716d91578505c233a7b7e983b4ad564a6f547151b2541bc463a58dfa351
|
|
| MD5 |
6af5b66eaab7fe672525ef22b8f13887
|
|
| BLAKE2b-256 |
313bf215dcc4cb149c105f0ddf83bf8c64ddd10962d72905d403d23fa67482d3
|
Provenance
The following attestation bundles were made for radiant_wrapper-0.1a9.tar.gz:
Publisher:
python-publish.yml on dunderlab/python-radiant_wrapper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
radiant_wrapper-0.1a9.tar.gz -
Subject digest:
29f63716d91578505c233a7b7e983b4ad564a6f547151b2541bc463a58dfa351 - Sigstore transparency entry: 453468884
- Sigstore integration time:
-
Permalink:
dunderlab/python-radiant_wrapper@57b9cc4122e2d9a3668097ff5d3d880bb53ec4ec -
Branch / Tag:
refs/tags/0.1a9 - Owner: https://github.com/dunderlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@57b9cc4122e2d9a3668097ff5d3d880bb53ec4ec -
Trigger Event:
release
-
Statement type:
File details
Details for the file radiant_wrapper-0.1a9-py3-none-any.whl.
File metadata
- Download URL: radiant_wrapper-0.1a9-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b7fd51bab991e9f3a77e1bcf0cb5c10ab88c705a5f8a95e918588dbe561d82e
|
|
| MD5 |
0098659edfb829ac758ec9898b784345
|
|
| BLAKE2b-256 |
35f5b89b03cda92d68eef3d985f0cc0bb1dcc4bde5e506d2cea027b107f9a012
|
Provenance
The following attestation bundles were made for radiant_wrapper-0.1a9-py3-none-any.whl:
Publisher:
python-publish.yml on dunderlab/python-radiant_wrapper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
radiant_wrapper-0.1a9-py3-none-any.whl -
Subject digest:
4b7fd51bab991e9f3a77e1bcf0cb5c10ab88c705a5f8a95e918588dbe561d82e - Sigstore transparency entry: 453468887
- Sigstore integration time:
-
Permalink:
dunderlab/python-radiant_wrapper@57b9cc4122e2d9a3668097ff5d3d880bb53ec4ec -
Branch / Tag:
refs/tags/0.1a9 - Owner: https://github.com/dunderlab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@57b9cc4122e2d9a3668097ff5d3d880bb53ec4ec -
Trigger Event:
release
-
Statement type: