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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1817925560c765efe73fb692c047fb007511388d53e6dbeec7bfcda391eb83ac |
|
MD5 | de6c2eb989ad0639184d1cef9ebc00b7 |
|
BLAKE2b-256 | d9ee7503b4a39d212e23f795ed979e5d4f1ab418d7d4df1edd201bc432428d2d |
Hashes for backports.entry_points_selectable-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b9fda50dab4f298f646bc7b717b6a3b90dd4d509015f1ce9e66b41a1330d46 |
|
MD5 | adfb4317269badcff30ec0d029034f7b |
|
BLAKE2b-256 | db1531de6452c78a5a4f693df750b19da87c27fe9668ba8217168635f0d5be68 |