# pyinvoke/invoke

Pythonic task management & command execution.

Repository: https://github.com/pyinvoke/invoke
Canonical: https://ross.abutalabs.com/products/invoke
Homepage: http://pyinvoke.org
Language: Python
License: BSD-2-Clause
License Family: permissive
Last push: 2026-04-07T15:39:24+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 76, release rhythm 35, longevity 100
- inputs: {"age_days": 5299, "days_push": 148, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4769, forks 407 (observed 2026-08-28T04:08:59.311364+00:00)

## What it is
Invoke is a Python library for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks defined in a tasks.py file. It is inspired by make/rake and Fabric 1.x, and serves as the foundation for tools like Fabric.

## Use cases
- run shell commands from python
- define task runner like make or rake
- automate build and clean tasks
- run multiple tasks from command line
- manage subprocesses in python scripts
- replace shell scripts with python tasks

## When to choose
- you want a Pythonic alternative to Make or Rake for project tasks
- you need to run and organize shell commands from Python code or a CLI
- you are building tools on top of a task-execution library (e.g. Fabric)

## When to avoid
- you need remote execution over SSH - use Fabric instead
- you need full build-system dependency graphs like Make's file-based targets
- you want a general workflow orchestrator with scheduling or DAGs

## Facets
- artifact type: library
- maturity: stable
- function: cli, developer-tools, workflow-automation
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: task-runner, subprocess, make-alternative, fabric, command-line, automation

## Member repositories
- pyinvoke/invoke (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:59.311364+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:18:49.080851+00:00, confidence not recorded.
  - readme: https://github.com/pyinvoke/invoke (fetched 2026-08-28T04:08:59.311364+00:00, sha 27126bd3f6ad)
  - homepage: http://pyinvoke.org (fetched 2026-08-29T09:04:56.148111+00:00, sha 82b5c7285588)
  - registry_pypi: https://pypi.org/pypi/invoke/json (fetched 2026-08-29T09:04:56.159079+00:00, sha 24ba16c52429)
- Data as of 2026-08-30T08:39:29.467469+00:00.
