Skip to main content

A TUI for managing and running your Gradle tasks

Project description

Contributors Forks Stargazers Issues MIT License PyPI Downloads

lazygradle

lazygradle is a Textual-based TUI for browsing Gradle tasks, running them quickly, and reviewing task output without leaving the terminal.

It is built for the workflow of:

  • keeping multiple Gradle projects cached and switchable
  • searching a large task list quickly
  • running tasks with or without saved parameter sets
  • reviewing recent task history and output in a dedicated task manager tab
  • staying mostly keyboard-driven

Screenshots

Current Setup

Current Setup

Browse available tasks, search with /, inspect task details, and run tasks or saved configurations from the same screen.

Task Manager

Task Manager

Review task history on the left and inspect structured output on the right with vim-style motions, visual selection, yanking, and pane-focused navigation.

Run With Parameters

Run Task With Parameters

Launch tasks with custom CLI flags and environment variables, then save those inputs as reusable configurations.

Keys Guide

Keys Guide

The command palette includes a contextual keys guide that explains global controls plus tab- and pane-specific actions.

Highlights

  • Multi-project support with cached Gradle metadata
  • Fast task search and keyboard-first task execution
  • Saved task configurations with parameters and environment variables
  • Recent task history with re-run support
  • Dedicated Task Manager tab for output review
  • Vim-style Task Output navigation, visual selection, and yank support
  • Contextual key guide from the command palette
  • Optional file logging via environment variable

Installation

pip

pip install lazygradle

Run it with:

lazygradle

From Source

git clone https://github.com/jacob-sabella/lazygradle.git
cd lazygradle
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python app.py

Requirements

  • Python 3.13+
  • A Gradle project
  • Either a working gradlew wrapper in the project or gradle available on PATH

Quick Start

  1. Launch lazygradle.
  2. Press p to open the project chooser.
  3. Add or select a Gradle project.
  4. Use / to focus task search on the Current Setup tab.
  5. Press r to run the highlighted task or R to run it with parameters.
  6. Press 2 to open Task Manager and inspect recent runs and output.

Keyboard Workflow

Global

  • 1 / 2 switch between tabs
  • p opens the project chooser
  • Ctrl+h/j/k/l moves between panes in the active tab
  • Ctrl+Arrow keys do the same pane movement if you prefer arrows

Current Setup

  • / focuses the task search input
  • Enter in search jumps to the first result
  • r runs the selected task
  • R runs the selected task with parameters
  • F5 refreshes the task list

Task Output

  • j / k or arrow up/down move the cursor line
  • h / l or arrow left/right scroll horizontally
  • gg, G, Ctrl+d, Ctrl+u, 0, $ work as expected
  • v toggles visual mode
  • mouse drag also enters visual selection
  • y yanks the current visual selection
  • yy yanks the current line
  • + / - adjusts readability zoom for the output pane

Logging

Logging is disabled by default.

Enable it by setting LAZYGRADLE_LOG_FILE:

LAZYGRADLE_LOG_FILE=1 lazygradle

That writes to lazygradleapp.log in the current directory. You can also provide an explicit path:

LAZYGRADLE_LOG_FILE=~/.local/state/lazygradle/app.log lazygradle

LAZYGRADLE_LOG_LEVEL is also supported. When logging is enabled, it defaults to DEBUG.

Configuration

Project state is stored in:

~/.config/lazygradle/gradle_cache.json

That cache includes saved projects, recent task history, saved run configurations, theme selection, and Task Output settings.

Contributing

Issues and pull requests are welcome.

If you want to contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Make the change
  4. Open a pull request

License

Distributed under the MIT License. See LICENSE.

Acknowledgments

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

lazygradle-1.4.0b7.tar.gz (51.4 kB view details)

Uploaded Source

Built Distribution

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

lazygradle-1.4.0b7-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file lazygradle-1.4.0b7.tar.gz.

File metadata

  • Download URL: lazygradle-1.4.0b7.tar.gz
  • Upload date:
  • Size: 51.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lazygradle-1.4.0b7.tar.gz
Algorithm Hash digest
SHA256 5ec9c64232d3832f771e702c513e15b74854ae4c78b1cfda2d0c29545916026d
MD5 a38a26c36c4013ad5f5f64e034444f94
BLAKE2b-256 f81389941addedf8dfb0349e2a75fbbb550be0e250f6659ebe65b3a42e83e8d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for lazygradle-1.4.0b7.tar.gz:

Publisher: python-publish.yml on jacob-sabella/lazygradle

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

File details

Details for the file lazygradle-1.4.0b7-py3-none-any.whl.

File metadata

  • Download URL: lazygradle-1.4.0b7-py3-none-any.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lazygradle-1.4.0b7-py3-none-any.whl
Algorithm Hash digest
SHA256 7bcee218ec2f8e594de7a31756111316f7154fe4c0ddf1a68f5ee92ff77d598b
MD5 871f25a3538f2faa5dc2a154b9c089a6
BLAKE2b-256 730fbb9e37f8c0e904b5c0e9a4d096c3e2fa910d991aa6dee521315bf0308cd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for lazygradle-1.4.0b7-py3-none-any.whl:

Publisher: python-publish.yml on jacob-sabella/lazygradle

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