invoke
Pythonic task execution
Decision gist · record as of 2026-08-14
Yes. Invoke is a mature, actively maintained task runner with zero dependencies, permissive licensing, and broad platform support. Install it if you need to organize shell commands and Python code into CLI tasks without the overhead of larger frameworks or shell scripting. No known security issues.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low install friction; pure Python wheel with no runtime dependencies.
- Actively maintained as of 2026-04-07 with 4768 repository stars and production-stable status.
License · maintenance · safety
BSD-2-Clause (permissive) — BSD-2-Clause permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-04-07 (129 days) · last repo commit 2026-04-07 · 4,768 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 86,146,586 downloads/mo, #392 on PyPI
Alternatives
Verify before relying
pip install invoke
from invoke import task, run
@task
def hello(c):
c.run('echo Hello from Invoke')
# Then: invoke hello- Whether the package handles Windows subprocess quirks reliably (classifiers list Windows support but subprocess behavior varies).
- Performance characteristics when managing large numbers of concurrent or sequential tasks.
What it is and what it does
Invoke is a task runner and subprocess manager that lets you define Python functions as CLI-callable tasks and execute shell commands from within them. It combines the simplicity of Make-style task definition with Python's flexibility, drawing inspiration from Fabric and Rake. The library handles subprocess execution, output capture, and error handling, making it useful for build automation, deployment scripts, and development workflows where you want to organize shell commands and Python logic into a unified CLI interface.
The package has no external runtime dependencies, making it lightweight to install and integrate. It supports modern Python versions (3.9 through 3.14) and runs on macOS, Windows, and POSIX systems. The library is actively maintained and has been in development since 2013, with a stable API and comprehensive documentation.
Use it for
- Define and run build tasks (compilation, testing, packaging) as Python functions invoked from the command line.
- Automate deployment or system administration workflows by wrapping shell commands in a structured task interface.
- Organize development scripts (database migrations, data processing, environment setup) into a single CLI entry point.
- Create Makefile-like task runners without shell syntax, using pure Python for logic and conditionals.
- Manage subprocess execution with consistent error handling and output capture across different operating systems.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Invoke is a mature, actively maintained task runner with zero dependencies, permissive licensing, and broad platform support. Install it if you need to organize shell commands and Python code into CLI tasks without the overhead of larger frameworks or shell scripting. No known security issues.
Install
invoke on PyPI
Before you install
Low install friction; pure Python wheel with no runtime dependencies. Actively maintained as of 2026-04-07 with 4768 repository stars and production-stable status.
Requires Python 3.9 or later.
License in practice
BSD-2-Clause permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install invoke
from invoke import task, run
@task
def hello(c):
c.run('echo Hello from Invoke')
# Then: invoke hello
Verify before relying
- Whether the package handles Windows subprocess quirks reliably (classifiers list Windows support but subprocess behavior varies).
- Performance characteristics when managing large numbers of concurrent or sequential tasks.
Package facts
| License | BSD-2-Clause permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 129 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 86,146,586 / month, #392 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: System AdministratorsOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software DevelopmentTopic :: Software Development :: Build ToolsTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Software DistributionTopic :: System :: Systems Administration |
Evidence: invoke-3.0.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “CLI task executor”
- invokeInvoke is a Python library for defining and running shell commands…
- futuristFuturist provides futures utilities and executors that add…
- executorWraps Python's subprocess module to simplify executing local…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also fabric · fabric2 · executor · Paver · Flask-Executor · python-vagrant · scripttest · prefect-shell · delegator.py · bazel-runfiles