Skip to main content

This package is in maintenance-only mode. New code should use the importlib.metadata module in the Python standard library to find and load entry points.

Entry points are a way for Python packages to advertise objects with some common interface. The most common examples are console_scripts entry points, which define shell commands by identifying a Python function to run.

Groups of entry points, such as console_scripts, point to objects with similar interfaces. An application might use a group to find its plugins, or multiple groups if it has different kinds of plugins.

The entrypoints module contains functions to find and load entry points. You can install it from PyPI with pip install entrypoints.

To advertise entry points when distributing a package, see entry_points in the Python Packaging User Guide.

The pkg_resources module distributed with setuptools provides a way to discover entrypoints as well, but it contains other functionality unrelated to entrypoint discovery, and it does a lot of work at import time. Merely importing pkg_resources causes it to scan the files of all installed packages. Thus, in environments where a large number of packages are installed, importing pkg_resources can be very slow (several seconds).

By contrast, entrypoints is focused solely on entrypoint discovery and it is faster. Importing entrypoints does not scan anything, and getting a given entrypoint group performs a more focused scan.

When there are multiple versions of the same distribution in different directories on sys.path, entrypoints follows the rule that the first one wins. In most cases, this follows the logic of imports. Similarly, Entrypoints relies on pip to ensure that only one .dist-info or .egg-info directory exists for each installed package. There is no reliable way to pick which of several .dist-info folders accurately relates to the importable modules.

Metadata

Release files for entrypoints 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entrypoints 0.4.2
File Size Uploaded
entrypoints-0.4.2.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for entrypoints 0.4.2
File Interpreter ABI Platform
entrypoints-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / entrypoints-0.4.2.tar.gz

Download URL entrypoints-0.4.2.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3bebd9a2cd05e08b123be74c277b36de4a38e899dba6a84ac9962ebe0c22ece6
BLAKE2b-256 checksum
How to use checksums
9a6d8f96c1eb3aa1b448a718866e88e0201145a35e80ffcee3b1b88543d3e740
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.33.1

Release files / entrypoints-0.4.2-py3-none-any.whl

Download URL entrypoints-0.4.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
238a642cf1d295e1921347fc462d7b10110cb47f370ba22f6e1391776c3cec25
BLAKE2b-256 checksum
How to use checksums
be83c4d9988b61f52c813452a4596fcfab6b30fa507d6ed96348651dd10a9716
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.33.1

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4

2 release files

0.3

2 release files

0.2.3

2 release files

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page