Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/naskio/chaquopy-mishkal
example of running a Python library (mishkal) in Android using chaquopy
https://github.com/naskio/chaquopy-mishkal
android chaquopy kotlin kotlin-android mishkal python python-android python3
Last synced: 11 days ago
JSON representation
example of running a Python library (mishkal) in Android using chaquopy
- Host: GitHub
- URL: https://github.com/naskio/chaquopy-mishkal
- Owner: naskio
- License: mit
- Created: 2022-01-31T14:29:34.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-31T14:48:42.000Z (almost 3 years ago)
- Last Synced: 2024-11-10T14:44:52.790Z (2 months ago)
- Topics: android, chaquopy, kotlin, kotlin-android, mishkal, python, python-android, python3
- Language: Kotlin
- Homepage:
- Size: 404 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chaquopy-mishkal
This is an example for running a Python library (mishkal) in Android using chaquopy
## Code
All the code that has been added to run the python library is located between a two comments `python-start`
and `python-end`.The following files has been changed/added:
- [build.gradle](build.gradle) => adding chaquopy plugin
- [app/build.gradle](app/build.gradle) => installing python external libraries using pip
- [app/requirements.txt](app/requirements.txt) => python requirements
- [app/src/main/python/mishkal_module.py](app/src/main/python/mishkal_module.py) => wrapping the python library inside a
function
- [app/src/main/java/io/nask/mishkalandroid/MainActivity.kt](app/src/main/java/io/nask/mishkalandroid/MainActivity.kt)
calling the function in the main activity
- [local.properties](local.properties) => (optional) adding the chaquopy license key to your local.properties file```
# python-start
chaquopy.license=
# python-end
```You can get free license for your open source project
at [https://chaquo.com/chaquopy/free-license/](https://chaquo.com/chaquopy/free-license/)## Chaquopy
- chaquopy [https://chaquo.com/chaquopy/](https://chaquo.com/chaquopy/)
- chaquopy docs [https://chaquo.com/chaquopy/doc/current/](https://chaquo.com/chaquopy/doc/current/)
- chaquopy license [https://chaquo.com/chaquopy/license/](https://chaquo.com/chaquopy/license/)