{"repo":"PrzemyslawSwiderski/python-gradle-plugin","free":true,"listed":false,"github":"https://github.com/PrzemyslawSwiderski/python-gradle-plugin","clone":"git clone https://github.com/PrzemyslawSwiderski/python-gradle-plugin.git","description":"Gradle plugin to run Python projects.","language":"Kotlin","stars":22,"topics":["python-gradle-plugin","python-script","gradle","python","flask","flask-application","github-actions","gradle-plugin","numpy","protobuf"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Python Gradle Plugin Now, you can run Python scripts with Java and Gradle builds only. This Gradle Plugin automatically downloads and installs specific Conda tool to run python scripts or other executables ( pip , conda , mamba etc.) from virtual env. All install files are downloaded from Miniforge conda distribution by default. Python project configuration can be fully automated by Gradle tasks now. You can also check my other plugin for the uv tool. Requirements Java 11 or higher Gradle 7.0 or higher project Purpose Running python scripts or projects by executing single task which will download and install Python virtual environment. Additional Python configuration (pip/conda packages installation etc.) can be done by defining Gradle tasks in build.gradle.kts file. Usage Steps to run python script from Gradle 1. Apply a plugin to a project as described on gradle portal. 2. Configure a plugin by specifying desired python version in build script: 3. Define a task to run desired python script, for example to run quicksort.py script in main dir add the following task configuration to build script: 4. Run python script from gradle: 5. Wait until Conda is installed and environment set up. 6. Enjoy :) Python Plugin properties Plugin default behavior can be adjusted by specifying the following properties: - pythonVersion - Python environment version, default 3.14.0 , - condaVersion - Miniforge version, default 25.3.1-0 , the available ones can be checked at https://github.com/conda","default_branch":null,"files":null,"tree":[],"storefront":"/r/PrzemyslawSwiderski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PrzemyslawSwiderski/python-gradle-plugin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}