Linux ams-business-8.hostwindsdns.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
LiteSpeed
Server IP : 192.236.177.161 & Your IP : 216.73.216.50
Domains :
Cant Read [ /etc/named.conf ]
User : ajzdfbpz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.6 /
site-packages /
wheel /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
tool
[ DIR ]
drwxr-xr-x
2024-02-13 01:26
__init__.py
96
B
-rw-r--r--
2018-05-13 17:22
__main__.py
419
B
-rw-r--r--
2018-05-13 17:22
archive.py
2.37
KB
-rw-r--r--
2018-05-13 17:22
bdist_wheel.py
15.37
KB
-rw-r--r--
2023-12-18 13:33
egg2wheel.py
2.99
KB
-rw-r--r--
2023-12-18 13:33
install.py
17.9
KB
-rw-r--r--
2023-12-18 13:33
metadata.py
4.25
KB
-rw-r--r--
2023-12-18 13:33
paths.py
1.1
KB
-rw-r--r--
2018-05-13 17:22
pep425tags.py
5.63
KB
-rw-r--r--
2018-05-13 17:22
pkginfo.py
1.23
KB
-rw-r--r--
2018-05-13 17:22
util.py
2.62
KB
-rw-r--r--
2023-12-18 13:33
wininst2wheel.py
7.59
KB
-rw-r--r--
2023-12-18 13:33
Save
Rename
import base64 import hashlib import json import sys __all__ = ['urlsafe_b64encode', 'urlsafe_b64decode', 'utf8', 'to_json', 'from_json', 'matches_requirement'] if sys.version_info[0] < 3: text_type = unicode # noqa: F821 def native(s, encoding='ascii'): return s else: text_type = str def native(s, encoding='ascii'): if isinstance(s, bytes): return s.decode(encoding) return s def urlsafe_b64encode(data): """urlsafe_b64encode without padding""" return base64.urlsafe_b64encode(data).rstrip(binary('=')) def urlsafe_b64decode(data): """urlsafe_b64decode without padding""" pad = b'=' * (4 - (len(data) & 3)) return base64.urlsafe_b64decode(data + pad) def to_json(o): """Convert given data to JSON.""" return json.dumps(o, sort_keys=True) def from_json(j): """Decode a JSON payload.""" return json.loads(j) def open_for_csv(name, mode): if sys.version_info[0] < 3: kwargs = {} mode += 'b' else: kwargs = {'newline': '', 'encoding': 'utf-8'} return open(name, mode, **kwargs) def utf8(data): """Utf-8 encode data.""" if isinstance(data, text_type): return data.encode('utf-8') return data def binary(s): if isinstance(s, text_type): return s.encode('ascii') return s class HashingFile(object): def __init__(self, path, mode, hashtype='sha256'): self.fd = open(path, mode) self.hashtype = hashtype self.hash = hashlib.new(hashtype) self.length = 0 def write(self, data): self.hash.update(data) self.length += len(data) self.fd.write(data) def close(self): self.fd.close() def digest(self): if self.hashtype == 'md5': return self.hash.hexdigest() digest = self.hash.digest() return self.hashtype + '=' + native(urlsafe_b64encode(digest)) def __enter__(self): return self def __exit__(self, exc_type, exc_val, exc_tb): self.fd.close() def matches_requirement(req, wheels): """List of wheels matching a requirement. :param req: The requirement to satisfy :param wheels: List of wheels to search. """ try: from pkg_resources import Distribution, Requirement except ImportError: raise RuntimeError("Cannot use requirements without pkg_resources") req = Requirement.parse(req) selected = [] for wf in wheels: f = wf.parsed_filename dist = Distribution(project_name=f.group("name"), version=f.group("ver")) if dist in req: selected.append(wf) return selected