Skip to main content

Compatibility shim providing selectable entry points for older implementations

Project description

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

Compatibility shim to ease adoption of importlib_metadata 3.6. Avoids 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. To use, add backports.entry_points_selectable to your project requirements. It will include importlib_metadata automatically where needed. Projects should still require importlib_metadata as appropriate for API uses other than 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).

Project details


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.0.2.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

backports.entry_points_selectable-1.0.2-py2.py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page