entrypoint
Decorated functions as entry points.
Decision gist · record as of 2026-08-14
Yes, if you write console scripts regularly and want cleaner, more explicit entry point declarations. The package is stable, has no security issues, and adds minimal dependency weight. The dormant maintenance is not a concern—it is feature-complete and unlikely to need updates. Install it for codebases where you value readability and consistency in script structure.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or above.
- Low friction installation with a pure Python wheel.
- Maintenance is dormant—last release was 789 days ago—but the package is marked Production/Stable and has no known vulnerabilities, suggesting it is feature-complete rather than abandoned.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution, making this safe for any project.
last release 2024-06-16 (789 days) · last repo commit 2024-06-16 · 4 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 110,357 downloads/mo, #12,467 on PyPI
Alternatives
Verify before relying
from entrypoint import entrypoint
@entrypoint(__name__)
def main() -> None:
print("Hello, world!")
# Run: python file.py → prints "Hello, world!"
# Import: import file → no output- Whether the package is actively maintained or considered feature-complete and stable by design.
- Real-world adoption rate beyond the top 15000 PyPI packages metric.
What it is and what it does
entrypoint is a lightweight decorator library that simplifies defining console entry points in Python scripts. Instead of writing the standard `if __name__ == "__main__":` boilerplate, you decorate your main function with `@entrypoint(__name__)` and it executes only when the script runs directly, not when imported. The library depends on attrs, named, and typing-aliases for its implementation.
The package offers multiple usage patterns: a simple decorator form for immediate execution, a `.call()` method for manual control over when the function runs, and an `is_main()` function that mimics the traditional `if __name__ == "__main__":` check. It enforces the convention that entry point functions take no arguments and return nothing, though this is only validated by type-checkers, not at runtime.
Use it for
- Simplify CLI script definitions by replacing repetitive `if __name__ == "__main__":` blocks with a clean decorator.
- Ensure main functions are never accidentally executed during module imports in larger projects.
- Build command-line tools where you want explicit, type-safe entry point declarations.
- Migrate existing scripts to a more declarative entry point style without changing logic.
- Enforce consistent entry point patterns across a team or codebase.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you write console scripts regularly and want cleaner, more explicit entry point declarations.
The package is stable, has no security issues, and adds minimal dependency weight. The dormant maintenance is not a concern—it is feature-complete and unlikely to need updates. Install it for codebases where you value readability and consistency in script structure.
Install
entrypoint on PyPI
Before you install
Low friction installation with a pure Python wheel. Maintenance is dormant—last release was 789 days ago—but the package is marked Production/Stable and has no known vulnerabilities, suggesting it is feature-complete rather than abandoned.
Requires Python 3.8 or above.
License in practice
MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution, making this safe for any project.
Quickstart
from entrypoint import entrypoint
@entrypoint(__name__)
def main() -> None:
print("Hello, world!")
# Run: python file.py → prints "Hello, world!"
# Import: import file → no output
Verify before relying
- Whether the package is actively maintained or considered feature-complete and stable by design.
- Real-world adoption rate beyond the top 15000 PyPI packages metric.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesattrsnamedtyping-aliases |
| Maintenance | Dormant 789 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 110,357 / month, #12,467 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/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: UtilitiesTyping :: Typed |
Evidence: entrypoint-2.1.0-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 › “entry point decorator”
- entrypointProvides a decorator to mark functions as entry points, eliminating…
- catalogueProvides lightweight function registries that let you register and…
- backports.entry-points-selectableProvides forward-compatible access to selectable entry points on…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also entrypoints · logdecorator · entrypoint2 · Autologging · typing-aliases · backports.entry-points-selectable · decopatch · dpgui · mixed-methods · cliff