Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
wheel /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-02-27 13:31
cli
[ DIR ]
drwxr-xr-x
2025-02-27 13:31
vendored
[ DIR ]
drwxr-xr-x
2025-02-27 13:31
__init__.py
23
B
-rw-r--r--
2021-12-22 21:21
__main__.py
417
B
-rw-r--r--
2021-12-22 21:21
bdist_wheel.py
18.63
KB
-rw-r--r--
2021-12-22 21:21
macosx_libfile.py
15.56
KB
-rw-r--r--
2021-12-22 21:21
metadata.py
4.24
KB
-rw-r--r--
2021-12-22 21:21
pkginfo.py
1.23
KB
-rw-r--r--
2021-12-22 21:21
util.py
938
B
-rw-r--r--
2021-12-22 21:21
wheelfile.py
7.41
KB
-rw-r--r--
2023-01-23 19:29
Save
Rename
"""Tools for reading and writing PKG-INFO / METADATA without caring about the encoding.""" from email.parser import Parser try: unicode _PY3 = False except NameError: _PY3 = True if not _PY3: from email.generator import Generator def read_pkg_info_bytes(bytestr): return Parser().parsestr(bytestr) def read_pkg_info(path): with open(path, "r") as headers: message = Parser().parse(headers) return message def write_pkg_info(path, message): with open(path, 'w') as metadata: Generator(metadata, mangle_from_=False, maxheaderlen=0).flatten(message) else: from email.generator import BytesGenerator def read_pkg_info_bytes(bytestr): headers = bytestr.decode(encoding="ascii", errors="surrogateescape") message = Parser().parsestr(headers) return message def read_pkg_info(path): with open(path, "r", encoding="ascii", errors="surrogateescape") as headers: message = Parser().parse(headers) return message def write_pkg_info(path, message): with open(path, "wb") as out: BytesGenerator(out, mangle_from_=False, maxheaderlen=0).flatten(message)