PyFoxFile 0.19.4__tar.gz → 0.19.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.
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/PKG-INFO +1 -1
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/PyFoxFile.egg-info/PKG-INFO +1 -1
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/pyfoxfile.py +11 -12
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/pyproject.toml +1 -1
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/LICENSE +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/PyFoxFile.egg-info/SOURCES.txt +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/PyFoxFile.egg-info/dependency_links.txt +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/PyFoxFile.egg-info/top_level.txt +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/PyFoxFile.egg-info/zip-safe +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/README.md +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/foxfile.py +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/neofoxfile.py +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/setup.cfg +0 -0
- {pyfoxfile-0.19.4 → pyfoxfile-0.19.8}/setup.py +0 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/
|
|
15
15
|
Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski
|
|
16
16
|
|
|
17
|
-
$FileInfo: pyfoxfile.py - Last Update:
|
|
17
|
+
$FileInfo: pyfoxfile.py - Last Update: 8/14/2025 Ver. 0.19.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
|
|
@@ -343,12 +343,12 @@ __file_format_extension__ = __file_format_multi_dict__[__file_format_default__][
|
|
|
343
343
|
__file_format_dict__ = __file_format_multi_dict__[__file_format_default__]
|
|
344
344
|
__project__ = __program_name__
|
|
345
345
|
__project_url__ = "https://github.com/GameMaker2k/PyFoxFile"
|
|
346
|
-
__version_info__ = (0, 19,
|
|
347
|
-
__version_date_info__ = (2025,
|
|
346
|
+
__version_info__ = (0, 19, 8, "RC 1", 1)
|
|
347
|
+
__version_date_info__ = (2025, 8, 14, "RC 1", 1)
|
|
348
348
|
__version_date__ = str(__version_date_info__[0]) + "." + str(
|
|
349
349
|
__version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
|
|
350
350
|
__revision__ = __version_info__[3]
|
|
351
|
-
__revision_id__ = "$Id:
|
|
351
|
+
__revision_id__ = "$Id: 680e10dfb94a8ccdd9d8704694a46f39c769d2d8 $"
|
|
352
352
|
if(__version_info__[4] is not None):
|
|
353
353
|
__version_date_plusrc__ = __version_date__ + \
|
|
354
354
|
"-" + str(__version_date_info__[4])
|
|
@@ -358,8 +358,7 @@ if(__version_info__[3] is not None):
|
|
|
358
358
|
__version__ = str(__version_info__[0]) + "." + str(__version_info__[
|
|
359
359
|
1]) + "." + str(__version_info__[2]) + " " + str(__version_info__[3])
|
|
360
360
|
if(__version_info__[3] is None):
|
|
361
|
-
__version__ = str(__version_info__[
|
|
362
|
-
0]) + "." + str(__version_info__[1]) + "." + str(__version_info__[2])
|
|
361
|
+
__version__ = str(__version_info__[0]) + "." + str(__version_info__[1]) + "." + str(__version_info__[2])
|
|
363
362
|
|
|
364
363
|
PyBitness = platform.architecture()
|
|
365
364
|
if(PyBitness == "32bit" or PyBitness == "32"):
|
|
@@ -9305,10 +9304,10 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__):
|
|
|
9305
9304
|
if usehttp == 'requests' and haverequests:
|
|
9306
9305
|
if username and password:
|
|
9307
9306
|
response = requests.get(
|
|
9308
|
-
rebuilt_url, headers=headers, auth=(username, password), stream=True
|
|
9307
|
+
rebuilt_url, headers=headers, auth=(username, password), timeout=(5, 30), stream=True
|
|
9309
9308
|
)
|
|
9310
9309
|
else:
|
|
9311
|
-
response = requests.get(rebuilt_url, headers=headers, stream=True)
|
|
9310
|
+
response = requests.get(rebuilt_url, headers=headers, timeout=(5, 30), stream=True)
|
|
9312
9311
|
response.raw.decode_content = True
|
|
9313
9312
|
shutil.copyfileobj(response.raw, httpfile)
|
|
9314
9313
|
|
|
@@ -9478,7 +9477,7 @@ else:
|
|
|
9478
9477
|
if(haveparamiko):
|
|
9479
9478
|
def upload_file_to_sftp_string(sftpstring, url):
|
|
9480
9479
|
sftpfileo = BytesIO(sftpstring)
|
|
9481
|
-
sftpfile = upload_file_to_sftp_files(
|
|
9480
|
+
sftpfile = upload_file_to_sftp_files(sftpfileo, url)
|
|
9482
9481
|
sftpfileo.close()
|
|
9483
9482
|
return sftpfile
|
|
9484
9483
|
else:
|
|
@@ -9538,7 +9537,7 @@ if(havepysftp):
|
|
|
9538
9537
|
sftpfile = download_file_from_pysftp_file(url)
|
|
9539
9538
|
return sftpfile.read()
|
|
9540
9539
|
else:
|
|
9541
|
-
def
|
|
9540
|
+
def download_file_from_pysftp_string(url):
|
|
9542
9541
|
return False
|
|
9543
9542
|
|
|
9544
9543
|
if(havepysftp):
|
|
@@ -9591,11 +9590,11 @@ else:
|
|
|
9591
9590
|
if(havepysftp):
|
|
9592
9591
|
def upload_file_to_pysftp_string(sftpstring, url):
|
|
9593
9592
|
sftpfileo = BytesIO(sftpstring)
|
|
9594
|
-
sftpfile =
|
|
9593
|
+
sftpfile = upload_file_to_pysftp_file(ftpfileo, url)
|
|
9595
9594
|
sftpfileo.close()
|
|
9596
9595
|
return sftpfile
|
|
9597
9596
|
else:
|
|
9598
|
-
def upload_file_to_pysftp_string(url):
|
|
9597
|
+
def upload_file_to_pysftp_string(sftpstring, url):
|
|
9599
9598
|
return False
|
|
9600
9599
|
|
|
9601
9600
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|