Compatibility shim providing selectable entry points for older implementations
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for backports.entry_points_selectable-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 245402450796bd6f8bb98a06ca5420cdd471c70cd27ac381eb655d7ed7902932 |
|
MD5 | 1d14566066aeed8c47f4f69d711aa913 |
|
BLAKE2b-256 | 5032e1f63195e8efd28ecb7bc70bc27559bbc6f605cda6e8444876193882de6a |
Hashes for backports.entry_points_selectable-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad6f9f4dc3ee91f66f1a7e6b39827f1a97f11499be78f5fefad65d2459e7c66 |
|
MD5 | ac4da0c46cae022eaa5b2b545d07e6e6 |
|
BLAKE2b-256 | aea48be5813c127a9577d6582bcbbfd671926b676bc42e5a791e8e9af8f4b831 |