PyArchiveFile 0.24.6__py3-none-any.whl → 0.25.2__py3-none-any.whl
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.
- {pyarchivefile-0.24.6.data → pyarchivefile-0.25.2.data}/scripts/archivefile.py +12 -12
- {pyarchivefile-0.24.6.dist-info → pyarchivefile-0.25.2.dist-info}/METADATA +2 -2
- pyarchivefile-0.25.2.dist-info/RECORD +10 -0
- pyarchivefile.py +664 -1170
- pyarchivefile-0.24.6.dist-info/RECORD +0 -10
- {pyarchivefile-0.24.6.data → pyarchivefile-0.25.2.data}/scripts/archiveneofile.py +0 -0
- {pyarchivefile-0.24.6.data → pyarchivefile-0.25.2.data}/scripts/neoarchivefile.py +0 -0
- {pyarchivefile-0.24.6.dist-info → pyarchivefile-0.25.2.dist-info}/WHEEL +0 -0
- {pyarchivefile-0.24.6.dist-info → pyarchivefile-0.25.2.dist-info}/licenses/LICENSE +0 -0
- {pyarchivefile-0.24.6.dist-info → pyarchivefile-0.25.2.dist-info}/top_level.txt +0 -0
- {pyarchivefile-0.24.6.dist-info → pyarchivefile-0.25.2.dist-info}/zip-safe +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: archivefile.py - Last Update: 11/
|
|
17
|
+
$FileInfo: archivefile.py - Last Update: 11/6/2025 Ver. 0.25.2 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
|
|
@@ -115,7 +115,7 @@ argparser.add_argument("-L", "--level", default=None, help="Specify the compress
|
|
|
115
115
|
argparser.add_argument("-W", "--wholefile", action="store_true", help="Whole file compression method to use for concatenation.")
|
|
116
116
|
# Checksum and validation
|
|
117
117
|
argparser.add_argument("-v", "--validate", action="store_true", help="Validate archive file checksums.")
|
|
118
|
-
argparser.add_argument("-C", "--checksum", default="
|
|
118
|
+
argparser.add_argument("-C", "--checksum", default="md5", help="Specify the type of checksum to use. The default is md5.")
|
|
119
119
|
argparser.add_argument("-s", "--skipchecksum", action="store_true", help="Skip the checksum check of files.")
|
|
120
120
|
# Permissions and metadata
|
|
121
121
|
argparser.add_argument("-p", "--preserve", action="store_false", help="Do not preserve permissions and timestamps of files.")
|
|
@@ -153,38 +153,38 @@ if active_action:
|
|
|
153
153
|
checkcompressfile = pyarchivefile.CheckCompressionSubType(
|
|
154
154
|
input_file, fnamedict, 0, True)
|
|
155
155
|
if((pyarchivefile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pyarchivefile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
156
|
-
tmpout = pyarchivefile.RePackArchiveFile(input_file, getargs.output, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
156
|
+
tmpout = pyarchivefile.RePackArchiveFile(input_file, getargs.output, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
157
157
|
else:
|
|
158
158
|
tmpout = pyarchivefile.PackArchiveFileFromInFile(
|
|
159
|
-
input_file, getargs.output, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
159
|
+
input_file, getargs.output, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
160
160
|
if(not tmpout):
|
|
161
161
|
sys.exit(1)
|
|
162
162
|
else:
|
|
163
|
-
pyarchivefile.PackArchiveFile(getargs.input, getargs.output, getargs.text, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, False, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
163
|
+
pyarchivefile.PackArchiveFile(getargs.input, getargs.output, getargs.text, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, False, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
164
164
|
elif active_action == 'repack':
|
|
165
165
|
if getargs.convert:
|
|
166
166
|
checkcompressfile = pyarchivefile.CheckCompressionSubType(
|
|
167
167
|
input_file, fnamedict, 0, True)
|
|
168
168
|
if((pyarchivefile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pyarchivefile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
169
169
|
pyarchivefile.RePackArchiveFile(input_file, getargs.output, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt,
|
|
170
|
-
False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
170
|
+
False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
171
171
|
else:
|
|
172
|
-
pyarchivefile.PackArchiveFileFromInFile(input_file, getargs.output, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
172
|
+
pyarchivefile.PackArchiveFileFromInFile(input_file, getargs.output, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
173
173
|
if(not tmpout):
|
|
174
174
|
sys.exit(1)
|
|
175
175
|
else:
|
|
176
176
|
pyarchivefile.RePackArchiveFile(input_file, getargs.output, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt,
|
|
177
|
-
False, getargs.filestart, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
177
|
+
False, getargs.filestart, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
178
178
|
elif active_action == 'extract':
|
|
179
179
|
if getargs.convert:
|
|
180
180
|
checkcompressfile = pyarchivefile.CheckCompressionSubType(
|
|
181
181
|
input_file, fnamedict, 0, True)
|
|
182
182
|
tempout = BytesIO()
|
|
183
183
|
if((pyarchivefile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pyarchivefile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
184
|
-
tmpout = pyarchivefile.RePackArchiveFile(input_file, tempout, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, False, False)
|
|
184
|
+
tmpout = pyarchivefile.RePackArchiveFile(input_file, tempout, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, False, False)
|
|
185
185
|
else:
|
|
186
186
|
tmpout = pyarchivefile.PackArchiveFileFromInFile(
|
|
187
|
-
input_file, tempout, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, False, False)
|
|
187
|
+
input_file, tempout, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, False, False)
|
|
188
188
|
if(not tmpout):
|
|
189
189
|
sys.exit(1)
|
|
190
190
|
input_file = tempout
|
|
@@ -208,10 +208,10 @@ if active_action:
|
|
|
208
208
|
input_file, fnamedict, 0, True)
|
|
209
209
|
tempout = BytesIO()
|
|
210
210
|
if((pyarchivefile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pyarchivefile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
211
|
-
tmpout = pyarchivefile.RePackArchiveFile(input_file, tempout, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, False, False, False)
|
|
211
|
+
tmpout = pyarchivefile.RePackArchiveFile(input_file, tempout, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, False, False, False)
|
|
212
212
|
else:
|
|
213
213
|
tmpout = pyarchivefile.PackArchiveFileFromInFile(
|
|
214
|
-
input_file, tempout, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, False, False)
|
|
214
|
+
input_file, tempout, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pyarchivefile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, False, False)
|
|
215
215
|
input_file = tempout
|
|
216
216
|
if(not tmpout):
|
|
217
217
|
sys.exit(1)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyArchiveFile
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.25.2
|
|
4
4
|
Summary: A tar like file format name archivefile.
|
|
5
5
|
Home-page: https://github.com/GameMaker2k/PyArchiveFile
|
|
6
6
|
Download-URL: https://github.com/GameMaker2k/PyArchiveFile/archive/master.tar.gz
|
|
7
7
|
Author: Kazuhana Neko-chan
|
|
8
|
-
Author-email: Kazuhika Kitsune-chan <kazuki.suzuki.fox@gmail.com>, Kazuhana Neko-chan <kazuki.suzuki.cat@gmail.com>, Kazuki Neko-kun <kazuki.suzuki.wa@gmail.com>, Game Maker 2k <gamemaker2k@gmail.com>
|
|
8
|
+
Author-email: Kazuhika Kitsune-chan <kazuki.suzuki.fox@gmail.com>, Kazuhana Neko-chan <kazuki.suzuki.cat@gmail.com>, Kazuki Neko-kun <kazuki.suzuki.wa@gmail.com>, Kazuki Suzuki Neko-kun <kazuki.suzuki.sadeghi@gmail.com>, Game Maker 2k <gamemaker2k@gmail.com>
|
|
9
9
|
Maintainer: Kazuhika Kitsune-chan
|
|
10
10
|
Maintainer-email: kazuki.suzuki.fox@gmail.com
|
|
11
11
|
License: BSD-3-Clause
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
pyarchivefile.py,sha256=Ub8a6SCKpLIRcUJKqd1uxcpbm31h_AtGCPBdQtm1ZGo,592280
|
|
2
|
+
pyarchivefile-0.25.2.data/scripts/archivefile.py,sha256=TLiWiSVllcTXMktx9ZG13P4Qm_Vk8MiRZ-AfVG_4kWE,14418
|
|
3
|
+
pyarchivefile-0.25.2.data/scripts/archiveneofile.py,sha256=m2jQVSnpapc2fd9R1fyvvERCNT3JLKymcwE5_bl0Rfk,5140
|
|
4
|
+
pyarchivefile-0.25.2.data/scripts/neoarchivefile.py,sha256=wx4Ct6o3pnACJWhOFW9cLtoJ_e_alIWIj29Iey5Eb1w,7334
|
|
5
|
+
pyarchivefile-0.25.2.dist-info/licenses/LICENSE,sha256=WM1VWxTUVrQbvEa-LC7cKTaBHXiqSTyYPoJvsZSbd7E,1513
|
|
6
|
+
pyarchivefile-0.25.2.dist-info/METADATA,sha256=Wa-uyRNzhSEgz3O4blVVS14lGqKVFvwhf1Iwfi6JTy4,927
|
|
7
|
+
pyarchivefile-0.25.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
pyarchivefile-0.25.2.dist-info/top_level.txt,sha256=dXsHVLesKNVXuVZeri6pRuRPo3y1HrcPsUrIw5KU5fk,14
|
|
9
|
+
pyarchivefile-0.25.2.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
10
|
+
pyarchivefile-0.25.2.dist-info/RECORD,,
|