__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import sys
from functools import partial
def find_entrypoints(group_name: str):
"""
Find entrypoints of a given group using either `importlib.metadata` or the
older `pkg_resources` mechanism.
Yields tuples of the entrypoint name and a callable function that will
load the actual entrypoint.
"""
if sys.version_info >= (3, 10):
# "Changed in version 3.10: importlib.metadata is no longer provisional."
try:
from importlib.metadata import entry_points
except ImportError:
pass
else:
eps = entry_points(group=group_name)
# Only do this if this implementation of `importlib.metadata` is
# modern enough to not return a dict.
if not isinstance(eps, dict):
for entry_point in eps:
yield (entry_point.name, entry_point.load)
return
try:
from pkg_resources import working_set
except ImportError:
pass
else:
for entry_point in working_set.iter_entry_points(group_name):
yield (entry_point.name, partial(entry_point.load, require=True))
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 349 B | 0644 |
|
| _compat.py | File | 1.14 KB | 0644 |
|
| catalog.py | File | 36.92 KB | 0644 |
|
| checkers.py | File | 6.07 KB | 0644 |
|
| extract.py | File | 33.47 KB | 0644 |
|
| frontend.py | File | 44.34 KB | 0644 |
|
| jslexer.py | File | 7.04 KB | 0644 |
|
| mofile.py | File | 7.09 KB | 0644 |
|
| plurals.py | File | 7.32 KB | 0644 |
|
| pofile.py | File | 25.35 KB | 0644 |
|
| setuptools_frontend.py | File | 3.4 KB | 0644 |
|