Skip to main content
https://img.shields.io/pypi/v/backports.entry_points_selectable.svg https://img.shields.io/pypi/pyversions/backports.entry_points_selectable.svg tests Code style: Black https://img.shields.io/badge/skeleton-2022-informational

Compatibility shim to ease adoption of importlib_metadata 3.6. Supplies forward-compatibility of “selectable” entry points even on older versions of importlib_metadata and importlib.metadata, and avoids usage that triggers deprecation warnings.

Use this shim for libraries or applications invoking entry_points() that run on Python older than 3.10 or where importlib_metadata is older than 3.6. In most cases, this shim is unnecessary and the easiest thing to do is simply require importlib_metadata >= 3.6 on all Pythons (or only those prior to 3.10a7). In some environments, a library may be constrained on which versions of importlib_metadata can be required, so this library bridges that gap.

To use this shim, add backports.entry_points_selectable to your project requirements. It will require importlib_metadata automatically where needed (prior to Python 3.8) but be satisfied by older versions. Projects should still require importlib_metadata as appropriate for API uses other than for entry_points.

Then in code, instead of from importlib.metadata import entry_points, use:

from backports.entry_points_selectable import entry_points

And then use the “selectable” features (pass keyword arguments to entry_points or invoke .select() on the result).

This backport has a very lenient dependency on importlib_metadata for older Pythons and is a single module implementation. If adding a dependency is a concern, this module may be vendored into the downstream project.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backports.entry_points_selectable-1.2.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file backports.entry_points_selectable-1.2.0.tar.gz.

File metadata

File hashes

Hashes for backports.entry_points_selectable-1.2.0.tar.gz
Algorithm Hash digest
SHA256 4706f59179657ca7c1d325a543ee1370f8f46331f432bcac62fab242fdf0afa5
MD5 0c3b8cc9915a467c6173961ca9ed7a39
BLAKE2b-256 a9bf2a7a454f330177a075a69ecfd56b4af66c086145f33fe25860597fecebb1

See more details on using hashes here.

File details

Details for the file backports.entry_points_selectable-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for backports.entry_points_selectable-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae81aeef71c2de28818b26a588e4a4d98d94c6d8e738525aec827a6e2974753d
MD5 945640c22e068e146f525d77d9b11205
BLAKE2b-256 879f1f2b0064c8dc23da29c7973bf07ada730bcb6b52e1cd1f3decb6b711d643

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page