SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > setuptools


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
_distutils Directory - -
_vendor Directory - -
command Directory - -
compat Directory - -
config Directory - -
tests Directory - -
__init__.py File 10406 bytes April 17 2025 13:10:58.
_core_metadata.py File 11978 bytes April 17 2025 13:10:58.
_entry_points.py File 2310 bytes April 17 2025 13:10:58.
_imp.py File 2435 bytes April 17 2025 13:10:58.
_importlib.py File 223 bytes April 17 2025 13:10:58.
_itertools.py File 657 bytes April 17 2025 13:10:58.
_normalization.py File 5824 bytes April 17 2025 13:10:58.
_path.py File 2685 bytes April 17 2025 13:10:58.
_reqs.py File 1438 bytes April 17 2025 13:10:58.
_shutil.py File 1496 bytes April 17 2025 13:10:58.
_static.py File 4855 bytes April 17 2025 13:10:58.
archive_util.py File 7356 bytes April 17 2025 13:10:58.
build_meta.py File 20446 bytes April 17 2025 13:10:58.
cli-32.exe File 11776 bytes April 17 2025 13:10:58.
cli-64.exe File 14336 bytes April 17 2025 13:10:58.
cli-arm64.exe File 13824 bytes April 17 2025 13:10:58.
cli.exe File 11776 bytes April 17 2025 13:10:58.
depends.py File 5965 bytes April 17 2025 13:10:58.
discovery.py File 21258 bytes April 17 2025 13:10:58.
dist.py File 44897 bytes April 17 2025 13:10:58.
errors.py File 3024 bytes April 17 2025 13:10:58.
extension.py File 6683 bytes April 17 2025 13:10:58.
glob.py File 6062 bytes April 17 2025 13:10:58.
gui-32.exe File 11776 bytes April 17 2025 13:10:58.
gui-64.exe File 14336 bytes April 17 2025 13:10:58.
gui-arm64.exe File 13824 bytes April 17 2025 13:10:58.
gui.exe File 11776 bytes April 17 2025 13:10:58.
installer.py File 5110 bytes April 17 2025 13:10:58.
launch.py File 820 bytes April 17 2025 13:10:58.
logging.py File 1261 bytes April 17 2025 13:10:58.
modified.py File 568 bytes April 17 2025 13:10:58.
monkey.py File 3717 bytes April 17 2025 13:10:58.
msvc.py File 41631 bytes April 17 2025 13:10:58.
namespaces.py File 3171 bytes April 17 2025 13:10:58.
package_index.py File 39095 bytes April 17 2025 13:10:58.
sandbox.py File 14906 bytes April 17 2025 13:10:58.
script (dev).tmpl File 218 bytes April 17 2025 13:10:58.
script.tmpl File 138 bytes April 17 2025 13:10:58.
unicode_utils.py File 3189 bytes April 17 2025 13:10:58.
version.py File 161 bytes April 17 2025 13:10:58.
warnings.py File 3796 bytes April 17 2025 13:10:58.
wheel.py File 8624 bytes April 17 2025 13:10:58.
windows_support.py File 726 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/setuptools/_entry_points.py

import functools
import itertools
import operator

from jaraco.functools import pass_none
from jaraco.text import yield_lines
from more_itertools import consume

from ._importlib import metadata
from ._itertools import ensure_unique
from .errors import OptionError


def ensure_valid(ep):
    """
    Exercise one of the dynamic properties to trigger
    the pattern match.
    """
    try:
        ep.extras
    except (AttributeError, AssertionError) as ex:
        # Why both? See https://github.com/python/importlib_metadata/issues/488
        msg = (
            f"Problems to parse {ep}.\nPlease ensure entry-point follows the spec: "
            "https://packaging.python.org/en/latest/specifications/entry-points/"
        )
        raise OptionError(msg) from ex


def load_group(value, group):
    """
    Given a value of an entry point or series of entry points,
    return each as an EntryPoint.
    """
    # normalize to a single sequence of lines
    lines = yield_lines(value)
    text = f'[{group}]\n' + '\n'.join(lines)
    return metadata.EntryPoints._from_text(text)


def by_group_and_name(ep):
    return ep.group, ep.name


def validate(eps: metadata.EntryPoints):
    """
    Ensure entry points are unique by group and name and validate each.
    """
    consume(map(ensure_valid, ensure_unique(eps, key=by_group_and_name)))
    return eps


@functools.singledispatch
def load(eps):
    """
    Given a Distribution.entry_points, produce EntryPoints.
    """
    groups = itertools.chain.from_iterable(
        load_group(value, group) for group, value in eps.items()
    )
    return validate(metadata.EntryPoints(groups))


@load.register(str)
def _(eps):
    r"""
    >>> ep, = load('[console_scripts]\nfoo=bar')
    >>> ep.group
    'console_scripts'
    >>> ep.name
    'foo'
    >>> ep.value
    'bar'
    """
    return validate(metadata.EntryPoints(metadata.EntryPoints._from_text(eps)))


load.register(type(None), lambda x: x)


@pass_none
def render(eps: metadata.EntryPoints):
    by_group = operator.attrgetter('group')
    groups = itertools.groupby(sorted(eps, key=by_group), by_group)

    return '\n'.join(f'[{group}]\n{render_items(items)}\n' for group, items in groups)


def render_items(eps):
    return '\n'.join(f'{ep.name} = {ep.value}' for ep in sorted(eps))

SILENT KILLER Tool