pyinvoke
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2018-09-20, no maintenance since) with high install friction and no clear evidence of ongoing compatibility with modern Python. Before adopting it, verify whether the original relative-import problem it solves is still relevant to your use case, and explore whether standard Python tooling or modern alternatives now handle this scenario better.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python to be invoked with -m pyinvoke; the target module must be importable and the function must exist at the specified path.
- High install friction and abandoned maintenance status (last release 2018-09-20, no activity since).
- No runtime dependencies, but the package has received no updates in years and shows no active development.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it legally safe to adopt from a licensing perspective.
last release 2018-09-20 (2885 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 208,218 downloads/mo, #9,533 on PyPI
Alternatives
Verify before relying
pip install pyinvoke
python -m pyinvoke module.main:main- Whether the package works reliably with modern Python versions (last tested/released in 2018).
- Whether relative import handling remains compatible with current Python semantics.
- Active alternatives or whether this problem is now solved by standard Python tooling.
What it is and what it does
pyinvoke is a lightweight module launcher that runs a Python function specified by a full module path (e.g., `module.main:main`), ensuring the target loads as its proper module rather than as `__main__`. This solves a specific problem: when you run a module directly with `python -m module.main`, relative imports within that module fail because Python doesn't recognize the parent package context. pyinvoke becomes `__main__` instead, allowing the target to load correctly and perform relative imports.
The package has no runtime dependencies and is simple to use: invoke it with `python -m pyinvoke <module>:<function>`. However, it has been abandoned since September 2018 with no updates or maintenance activity since then, and there is no indication of ongoing support or compatibility testing with modern Python versions.
Use it for
- Running a module that uses relative imports when direct invocation with `python -m` fails due to parent module loading issues.
- Launching Python applications from scripts or automation tools that need to preserve module context and relative import behavior.
- Workaround for packages that cannot be restructured to avoid relative import problems in their entry points.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2018-09-20, no maintenance since) with high install friction and no clear evidence of ongoing compatibility with modern Python. Before adopting it, verify whether the original relative-import problem it solves is still relevant to your use case, and explore whether standard Python tooling or modern alternatives now handle this scenario better.
Install
pyinvoke on PyPI
Before you install
High install friction and abandoned maintenance status (last release 2018-09-20, no activity since). No runtime dependencies, but the package has received no updates in years and shows no active development.
Requires Python to be invoked with -m pyinvoke; the target module must be importable and the function must exist at the specified path.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions, making it legally safe to adopt from a licensing perspective.
Quickstart
pip install pyinvoke
python -m pyinvoke module.main:main
Verify before relying
- Whether the package works reliably with modern Python versions (last tested/released in 2018).
- Whether relative import handling remains compatible with current Python semantics.
- Active alternatives or whether this problem is now solved by standard Python tooling.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,885 days since the last release |
| First released | |
| Downloads | 208,218 / month, #9,533 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: pyinvoke-1.0.4.tar.gz
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 › “invoke python function by module path”
- pyinvokeInvokes Python functions by full module path specifier, loading the…
- emportEmport provides a single function to import Python files by filename,…
- rootpathDetects a Python project or package root directory by scanning for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also emport · locate · tracebackturbo3 · rootpath · pyproject-hooks · ipynb · pystray · import-deps · distlib