SILENT KILLERPanel

Current Path: > > usr > lib > python3.8 > site-packages > pip > _vendor > pep517


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: //usr/lib/python3.8/site-packages/pip/_vendor/pep517

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 84 bytes October 17 2023 18:30:24.
_in_process.py File 7792 bytes October 17 2023 18:30:24.
build.py File 3318 bytes October 17 2023 18:30:24.
check.py File 5949 bytes October 17 2023 18:30:24.
colorlog.py File 4098 bytes October 17 2023 18:30:24.
compat.py File 780 bytes October 17 2023 18:30:24.
dirtools.py File 1129 bytes October 17 2023 18:30:24.
envbuild.py File 6024 bytes October 17 2023 18:30:24.
meta.py File 2463 bytes October 17 2023 18:30:24.
wrappers.py File 10599 bytes October 17 2023 18:30:24.

Reading File: //usr/lib/python3.8/site-packages/pip/_vendor/pep517/dirtools.py

import os
import io
import contextlib
import tempfile
import shutil
import errno
import zipfile


@contextlib.contextmanager
def tempdir():
    """Create a temporary directory in a context manager."""
    td = tempfile.mkdtemp()
    try:
        yield td
    finally:
        shutil.rmtree(td)


def mkdir_p(*args, **kwargs):
    """Like `mkdir`, but does not raise an exception if the
    directory already exists.
    """
    try:
        return os.mkdir(*args, **kwargs)
    except OSError as exc:
        if exc.errno != errno.EEXIST:
            raise


def dir_to_zipfile(root):
    """Construct an in-memory zip file for a directory."""
    buffer = io.BytesIO()
    zip_file = zipfile.ZipFile(buffer, 'w')
    for root, dirs, files in os.walk(root):
        for path in dirs:
            fs_path = os.path.join(root, path)
            rel_path = os.path.relpath(fs_path, root)
            zip_file.writestr(rel_path + '/', '')
        for path in files:
            fs_path = os.path.join(root, path)
            rel_path = os.path.relpath(fs_path, root)
            zip_file.write(fs_path, rel_path)
    return zip_file

SILENT KILLER Tool