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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7af2ac1226b83fcc468d96f966dc62ac93fef87ac90c26218866379c9801c94a |
|
MD5 | bf3f09bde3564768a74e4c87e38abca2 |
|
BLAKE2b-256 | 99aff549c79c3ddaa829c48de93619d4c75c4c72cc086bd816907a055e379a3d |
Hashes for backports.entry_points_selectable-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afe8048e76ff32fc6612cdbd5cae6bb7cf730f7f280271c409b937329145d54d |
|
MD5 | 89ed3aae0186f928c92558e2e93d2238 |
|
BLAKE2b-256 | 54419d95c2fd11f12ad7ed312f6059fffc4a89c4aeddc6770cf9fea06b5c945b |