PyCatFile 0.28.6__tar.gz → 0.28.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pycatfile-0.28.6 → pycatfile-0.28.8}/PKG-INFO +1 -1
- {pycatfile-0.28.6 → pycatfile-0.28.8}/PyCatFile.egg-info/PKG-INFO +1 -1
- {pycatfile-0.28.6 → pycatfile-0.28.8}/catfile.py +1 -1
- {pycatfile-0.28.6 → pycatfile-0.28.8}/catfile_py3.py +1 -1
- {pycatfile-0.28.6 → pycatfile-0.28.8}/pycatfile.py +7 -3
- {pycatfile-0.28.6 → pycatfile-0.28.8}/pycatfile_py3.py +10 -57
- {pycatfile-0.28.6 → pycatfile-0.28.8}/pyproject.toml +1 -1
- {pycatfile-0.28.6 → pycatfile-0.28.8}/LICENSE +0 -0
- {pycatfile-0.28.6 → pycatfile-0.28.8}/PyCatFile.egg-info/SOURCES.txt +0 -0
- {pycatfile-0.28.6 → pycatfile-0.28.8}/PyCatFile.egg-info/dependency_links.txt +0 -0
- {pycatfile-0.28.6 → pycatfile-0.28.8}/PyCatFile.egg-info/top_level.txt +0 -0
- {pycatfile-0.28.6 → pycatfile-0.28.8}/PyCatFile.egg-info/zip-safe +0 -0
- {pycatfile-0.28.6 → pycatfile-0.28.8}/README.md +0 -0
- {pycatfile-0.28.6 → pycatfile-0.28.8}/setup.cfg +0 -0
- {pycatfile-0.28.6 → pycatfile-0.28.8}/setup.py +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Copyright 2018-2026 Game Maker 2k - http://intdb.sourceforge.net/
|
|
15
15
|
Copyright 2018-2026 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
|
|
16
16
|
|
|
17
|
-
$FileInfo: catfile.py - Last Update: 2/
|
|
17
|
+
$FileInfo: catfile.py - Last Update: 2/8/2026 Ver. 0.28.8 RC 1 - Author: cooldude2k $
|
|
18
18
|
'''
|
|
19
19
|
|
|
20
20
|
from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
Copyright 2018-2026 Game Maker 2k - http://intdb.sourceforge.net/
|
|
14
14
|
Copyright 2018-2026 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
|
|
15
15
|
|
|
16
|
-
$FileInfo: catfile_py3.py - Last Update: 2/
|
|
16
|
+
$FileInfo: catfile_py3.py - Last Update: 2/8/2026 Ver. 0.28.8 RC 1 - Author: cooldude2k $
|
|
17
17
|
'''
|
|
18
18
|
|
|
19
19
|
from __future__ import annotations
|
|
@@ -666,7 +666,7 @@ __version_date_info__ = (2026, 2, 4, "RC 1", 1)
|
|
|
666
666
|
__version_date__ = str(__version_date_info__[0]) + "." + str(
|
|
667
667
|
__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
|
|
668
668
|
__revision__ = __version_info__[3]
|
|
669
|
-
__revision_id__ = "$Id:
|
|
669
|
+
__revision_id__ = "$Id: 36c940ce7745216a370c46433e956c3158041f44 $"
|
|
670
670
|
if(__version_info__[4] is not None):
|
|
671
671
|
__version_date_plusrc__ = __version_date__ + \
|
|
672
672
|
"-" + str(__version_date_info__[4])
|
|
@@ -5540,8 +5540,12 @@ def ReadFileDataWithContentToArray(fp, filestart=0, seekstart=0, seekend=0, list
|
|
|
5540
5540
|
il = 0
|
|
5541
5541
|
while(il < seekstart):
|
|
5542
5542
|
prefhstart = fp.tell()
|
|
5543
|
-
|
|
5544
|
-
|
|
5543
|
+
if(__use_new_style__):
|
|
5544
|
+
preheaderdata = ReadFileHeaderDataBySize(
|
|
5545
|
+
fp, formatspecs['format_delimiter'])
|
|
5546
|
+
else:
|
|
5547
|
+
preheaderdata = ReadFileHeaderDataWoSize(
|
|
5548
|
+
fp, formatspecs['format_delimiter'])
|
|
5545
5549
|
if(len(preheaderdata) == 0):
|
|
5546
5550
|
break
|
|
5547
5551
|
prefsize = int(preheaderdata[5], 16)
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Copyright 2018-2026 Game Maker 2k - http://intdb.sourceforge.net/
|
|
15
15
|
Copyright 2018-2026 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
|
|
16
16
|
|
|
17
|
-
$FileInfo: pycatfile.py - Last Update: 2/
|
|
17
|
+
$FileInfo: pycatfile.py - Last Update: 2/8/2026 Ver. 0.28.8 RC 1 - Author: cooldude2k $
|
|
18
18
|
'''
|
|
19
19
|
|
|
20
20
|
import io
|
|
@@ -699,12 +699,12 @@ __project__ = __program_name__
|
|
|
699
699
|
__program_alt_name__ = __program_name__
|
|
700
700
|
__project_url__ = "https://github.com/GameMaker2k/PyCatFile"
|
|
701
701
|
__project_release_url__ = __project_url__+"/releases/latest"
|
|
702
|
-
__version_info__ = (0, 28,
|
|
703
|
-
__version_date_info__ = (2026, 2,
|
|
702
|
+
__version_info__ = (0, 28, 8, "RC 1", 1)
|
|
703
|
+
__version_date_info__ = (2026, 2, 8, "RC 1", 1)
|
|
704
704
|
__version_date__ = str(__version_date_info__[0]) + "." + str(
|
|
705
705
|
__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
|
|
706
706
|
__revision__ = __version_info__[3]
|
|
707
|
-
__revision_id__ = "$Id:
|
|
707
|
+
__revision_id__ = "$Id: ea54c340399280a1c175a50340488fe21432ae21 $"
|
|
708
708
|
if(__version_info__[4] is not None):
|
|
709
709
|
__version_date_plusrc__ = __version_date__ + \
|
|
710
710
|
"-" + str(__version_date_info__[4])
|
|
@@ -4811,8 +4811,12 @@ def ReadFileDataWithContentToArray(fp, filestart=0, seekstart=0, seekend=0, list
|
|
|
4811
4811
|
il = 0
|
|
4812
4812
|
while(il < seekstart):
|
|
4813
4813
|
prefhstart = fp.tell()
|
|
4814
|
-
|
|
4815
|
-
|
|
4814
|
+
if(__use_new_style__):
|
|
4815
|
+
preheaderdata = ReadFileHeaderDataBySize(
|
|
4816
|
+
fp, formatspecs['format_delimiter'])
|
|
4817
|
+
else:
|
|
4818
|
+
preheaderdata = ReadFileHeaderDataWoSize(
|
|
4819
|
+
fp, formatspecs['format_delimiter'])
|
|
4816
4820
|
if(len(preheaderdata) == 0):
|
|
4817
4821
|
break
|
|
4818
4822
|
prefsize = int(preheaderdata[5], 16)
|
|
@@ -11897,57 +11901,6 @@ if(__use_http_lib__ == "requests" and havehttpx and not haverequests):
|
|
|
11897
11901
|
if((__use_http_lib__ == "httpx" or __use_http_lib__ == "requests") and not havehttpx and not haverequests):
|
|
11898
11902
|
__use_http_lib__ = "urllib"
|
|
11899
11903
|
|
|
11900
|
-
__program_name__ = "PyNeoWWW-Get"
|
|
11901
|
-
__program_alt_name__ = "PyWWWGet"
|
|
11902
|
-
__program_small_name__ = "wwwget"
|
|
11903
|
-
__project__ = __program_name__
|
|
11904
|
-
__project_url__ = "https://github.com/GameMaker2k/PyNeoWWW-Get"
|
|
11905
|
-
__version_info__ = (2, 2, 0, "RC 1", 1)
|
|
11906
|
-
__version_date_info__ = (2026, 1, 23, "RC 1", 1)
|
|
11907
|
-
__version_date__ = str(__version_date_info__[0])+"."+str(__version_date_info__[
|
|
11908
|
-
1]).zfill(2)+"."+str(__version_date_info__[2]).zfill(2)
|
|
11909
|
-
__revision__ = __version_info__[3]
|
|
11910
|
-
__revision_id__ = "$Id: 28cf85ee56dff68917635a26b6aa12cbe5e348e2 $"
|
|
11911
|
-
if(__version_info__[4] is not None):
|
|
11912
|
-
__version_date_plusrc__ = __version_date__ + \
|
|
11913
|
-
"-"+str(__version_date_info__[4])
|
|
11914
|
-
if(__version_info__[4] is None):
|
|
11915
|
-
__version_date_plusrc__ = __version_date__
|
|
11916
|
-
if(__version_info__[3] is not None):
|
|
11917
|
-
__version__ = str(__version_info__[0])+"."+str(__version_info__[1])+"."+str(
|
|
11918
|
-
__version_info__[2])+" "+str(__version_info__[3])
|
|
11919
|
-
if(__version_info__[3] is None):
|
|
11920
|
-
__version__ = str(
|
|
11921
|
-
__version_info__[0])+"."+str(__version_info__[1])+"."+str(__version_info__[2])
|
|
11922
|
-
|
|
11923
|
-
PyBitness = platform.architecture()
|
|
11924
|
-
if(PyBitness == "32bit" or PyBitness == "32"):
|
|
11925
|
-
PyBitness = "32"
|
|
11926
|
-
elif(PyBitness == "64bit" or PyBitness == "64"):
|
|
11927
|
-
PyBitness = "64"
|
|
11928
|
-
else:
|
|
11929
|
-
PyBitness = "32"
|
|
11930
|
-
|
|
11931
|
-
geturls_cj = cookielib.CookieJar()
|
|
11932
|
-
geturls_ua_pywwwget_python = "Mozilla/5.0 (compatible; {proname}/{prover}; +{prourl})".format(
|
|
11933
|
-
proname=__project__, prover=__version__, prourl=__project_url__)
|
|
11934
|
-
if(platform.python_implementation() != ""):
|
|
11935
|
-
py_implementation = platform.python_implementation()
|
|
11936
|
-
if(platform.python_implementation() == ""):
|
|
11937
|
-
py_implementation = "Python"
|
|
11938
|
-
geturls_ua_pywwwget_python_alt = "Mozilla/5.0 ({osver}; {archtype}; +{prourl}) {pyimp}/{pyver} (KHTML, like Gecko) {proname}/{prover}".format(osver=platform.system(
|
|
11939
|
-
)+" "+platform.release(), archtype=platform.machine(), prourl=__project_url__, pyimp=py_implementation, pyver=platform.python_version(), proname=__project__, prover=__version__)
|
|
11940
|
-
geturls_ua_googlebot_google = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
|
|
11941
|
-
geturls_ua_googlebot_google_old = "Googlebot/2.1 (+http://www.google.com/bot.html)"
|
|
11942
|
-
geturls_headers_pywwwget_python = {'Referer': "http://google.com/", 'User-Agent': geturls_ua_pywwwget_python, 'Accept-Encoding': "none", 'Accept-Language': "en-US,en;q=0.8,en-CA,en-GB;q=0.6", 'Accept-Charset': "ISO-8859-1,ISO-8859-15,utf-8;q=0.7,*;q=0.7", 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", 'Connection': "close",
|
|
11943
|
-
'SEC-CH-UA': "\""+__project__+"\";v=\""+str(__version__)+"\", \"Not;A=Brand\";v=\"8\", \""+py_implementation+"\";v=\""+str(platform.release())+"\"", 'SEC-CH-UA-FULL-VERSION': str(__version__), 'SEC-CH-UA-PLATFORM': ""+py_implementation+"", 'SEC-CH-UA-ARCH': ""+platform.machine()+"", 'SEC-CH-UA-PLATFORM-VERSION': str(__version__), 'SEC-CH-UA-BITNESS': str(PyBitness)}
|
|
11944
|
-
geturls_headers_pywwwget_python_alt = {'Referer': "http://google.com/", 'User-Agent': geturls_ua_pywwwget_python_alt, 'Accept-Encoding': "none", 'Accept-Language': "en-US,en;q=0.8,en-CA,en-GB;q=0.6", 'Accept-Charset': "ISO-8859-1,ISO-8859-15,utf-8;q=0.7,*;q=0.7", 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", 'Connection': "close",
|
|
11945
|
-
'SEC-CH-UA': "\""+__project__+"\";v=\""+str(__version__)+"\", \"Not;A=Brand\";v=\"8\", \""+py_implementation+"\";v=\""+str(platform.release())+"\"", 'SEC-CH-UA-FULL-VERSION': str(__version__), 'SEC-CH-UA-PLATFORM': ""+py_implementation+"", 'SEC-CH-UA-ARCH': ""+platform.machine()+"", 'SEC-CH-UA-PLATFORM-VERSION': str(__version__), 'SEC-CH-UA-BITNESS': str(PyBitness)}
|
|
11946
|
-
geturls_headers_googlebot_google = {'Referer': "http://google.com/", 'User-Agent': geturls_ua_googlebot_google, 'Accept-Encoding': "none", 'Accept-Language': "en-US,en;q=0.8,en-CA,en-GB;q=0.6",
|
|
11947
|
-
'Accept-Charset': "ISO-8859-1,ISO-8859-15,utf-8;q=0.7,*;q=0.7", 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", 'Connection': "close"}
|
|
11948
|
-
geturls_headers_googlebot_google_old = {'Referer': "http://google.com/", 'User-Agent': geturls_ua_googlebot_google_old, 'Accept-Encoding': "none", 'Accept-Language': "en-US,en;q=0.8,en-CA,en-GB;q=0.6",
|
|
11949
|
-
'Accept-Charset': "ISO-8859-1,ISO-8859-15,utf-8;q=0.7,*;q=0.7", 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", 'Connection': "close"}
|
|
11950
|
-
|
|
11951
11904
|
def fix_header_names(header_dict):
|
|
11952
11905
|
if(sys.version[0] == "2"):
|
|
11953
11906
|
header_dict = {k.title(): v for k, v in header_dict.items()}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|