PyCatFile 0.21.4__py3-none-any.whl → 0.22.4__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.
- {pycatfile-0.21.4.data → pycatfile-0.22.4.data}/scripts/catfile.py +15 -15
- {pycatfile-0.21.4.dist-info → pycatfile-0.22.4.dist-info}/METADATA +1 -1
- pycatfile-0.22.4.dist-info/RECORD +10 -0
- pycatfile.py +906 -1238
- pycatfile-0.21.4.dist-info/RECORD +0 -10
- {pycatfile-0.21.4.data → pycatfile-0.22.4.data}/scripts/catneofile.py +0 -0
- {pycatfile-0.21.4.data → pycatfile-0.22.4.data}/scripts/neocatfile.py +0 -0
- {pycatfile-0.21.4.dist-info → pycatfile-0.22.4.dist-info}/WHEEL +0 -0
- {pycatfile-0.21.4.dist-info → pycatfile-0.22.4.dist-info}/licenses/LICENSE +0 -0
- {pycatfile-0.21.4.dist-info → pycatfile-0.22.4.dist-info}/top_level.txt +0 -0
- {pycatfile-0.21.4.dist-info → pycatfile-0.22.4.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: catfile.py - Last Update: 8/
|
|
17
|
+
$FileInfo: catfile.py - Last Update: 8/29/2025 Ver. 0.22.4 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
|
|
@@ -171,9 +171,9 @@ if active_action:
|
|
|
171
171
|
if active_action == 'create':
|
|
172
172
|
if getargs.convert:
|
|
173
173
|
checkcompressfile = pycatfile.CheckCompressionSubType(
|
|
174
|
-
input_file, fnamedict, True)
|
|
174
|
+
input_file, fnamedict, 0, True)
|
|
175
175
|
if((pycatfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pycatfile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
176
|
-
tmpout = pycatfile.RePackCatFile(input_file, getargs.output, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, False, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
176
|
+
tmpout = pycatfile.RePackCatFile(input_file, getargs.output, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
177
177
|
else:
|
|
178
178
|
tmpout = pycatfile.PackCatFileFromInFile(
|
|
179
179
|
input_file, getargs.output, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
@@ -184,51 +184,51 @@ if active_action:
|
|
|
184
184
|
elif active_action == 'repack':
|
|
185
185
|
if getargs.convert:
|
|
186
186
|
checkcompressfile = pycatfile.CheckCompressionSubType(
|
|
187
|
-
input_file, fnamedict, True)
|
|
187
|
+
input_file, fnamedict, 0, True)
|
|
188
188
|
if((pycatfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pycatfile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
189
189
|
pycatfile.RePackCatFile(input_file, getargs.output, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt,
|
|
190
|
-
False, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
190
|
+
False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
191
191
|
else:
|
|
192
192
|
pycatfile.PackCatFileFromInFile(input_file, getargs.output, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
193
193
|
if(not tmpout):
|
|
194
194
|
sys.exit(1)
|
|
195
195
|
else:
|
|
196
196
|
pycatfile.RePackCatFile(input_file, getargs.output, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt,
|
|
197
|
-
False, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
197
|
+
False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
198
198
|
elif active_action == 'extract':
|
|
199
199
|
if getargs.convert:
|
|
200
200
|
checkcompressfile = pycatfile.CheckCompressionSubType(
|
|
201
|
-
input_file, fnamedict, True)
|
|
201
|
+
input_file, fnamedict, 0, True)
|
|
202
202
|
tempout = BytesIO()
|
|
203
203
|
if((pycatfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pycatfile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
204
|
-
tmpout = pycatfile.RePackCatFile(input_file, tempout, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, False, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, False, False)
|
|
204
|
+
tmpout = pycatfile.RePackCatFile(input_file, tempout, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, False, False)
|
|
205
205
|
else:
|
|
206
206
|
tmpout = pycatfile.PackCatFileFromInFile(
|
|
207
207
|
input_file, tempout, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, False, False)
|
|
208
208
|
if(not tmpout):
|
|
209
209
|
sys.exit(1)
|
|
210
210
|
input_file = tempout
|
|
211
|
-
pycatfile.UnPackCatFile(input_file, getargs.output, False, 0, 0, getargs.skipchecksum,
|
|
211
|
+
pycatfile.UnPackCatFile(input_file, getargs.output, False, 0, 0, 0, getargs.skipchecksum,
|
|
212
212
|
fnamedict, getargs.verbose, getargs.preserve, getargs.preserve, False, False)
|
|
213
213
|
elif active_action == 'list':
|
|
214
214
|
if getargs.convert:
|
|
215
215
|
checkcompressfile = pycatfile.CheckCompressionSubType(
|
|
216
|
-
input_file, fnamedict, True)
|
|
216
|
+
input_file, fnamedict, 0, True)
|
|
217
217
|
if((pycatfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pycatfile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
218
|
-
tmpout = pycatfile.CatFileListFiles(input_file, "auto", 0, 0, getargs.skipchecksum, fnamedict, False, getargs.verbose, False, False)
|
|
218
|
+
tmpout = pycatfile.CatFileListFiles(input_file, "auto", 0, 0, 0, getargs.skipchecksum, fnamedict, False, getargs.verbose, False, False)
|
|
219
219
|
else:
|
|
220
220
|
tmpout = pycatfile.InFileListFiles(input_file, getargs.verbose, fnamedict, False, False, False)
|
|
221
221
|
if(not tmpout):
|
|
222
222
|
sys.exit(1)
|
|
223
223
|
else:
|
|
224
|
-
pycatfile.CatFileListFiles(input_file, "auto", 0, 0, getargs.skipchecksum, fnamedict, False, getargs.verbose, False, False)
|
|
224
|
+
pycatfile.CatFileListFiles(input_file, "auto", 0, 0, 0, getargs.skipchecksum, fnamedict, False, getargs.verbose, False, False)
|
|
225
225
|
elif active_action == 'validate':
|
|
226
226
|
if getargs.convert:
|
|
227
227
|
checkcompressfile = pycatfile.CheckCompressionSubType(
|
|
228
|
-
input_file, fnamedict, True)
|
|
228
|
+
input_file, fnamedict, 0, True)
|
|
229
229
|
tempout = BytesIO()
|
|
230
230
|
if((pycatfile.IsNestedDict(fnamedict) and checkcompressfile in fnamedict) or (pycatfile.IsSingleDict(fnamedict) and checkcompressfile==fnamedict['format_magic'])):
|
|
231
|
-
tmpout = pycatfile.RePackCatFile(input_file, tempout, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, False, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, False, False, False)
|
|
231
|
+
tmpout = pycatfile.RePackCatFile(input_file, tempout, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, False, 0, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, False, False, False)
|
|
232
232
|
else:
|
|
233
233
|
tmpout = pycatfile.PackCatFileFromInFile(
|
|
234
234
|
input_file, tempout, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, False, False)
|
|
@@ -236,7 +236,7 @@ if active_action:
|
|
|
236
236
|
if(not tmpout):
|
|
237
237
|
sys.exit(1)
|
|
238
238
|
fvalid = pycatfile.CatFileValidate(
|
|
239
|
-
input_file, "auto", fnamedict, False, getargs.verbose, False)
|
|
239
|
+
input_file, "auto", 0, fnamedict, False, getargs.verbose, False)
|
|
240
240
|
if(not getargs.verbose):
|
|
241
241
|
import sys
|
|
242
242
|
import logging
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyCatFile
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.22.4
|
|
4
4
|
Summary: A tar like file format name catfile after unix cat command (concatenate files) .
|
|
5
5
|
Home-page: https://github.com/GameMaker2k/PyCatFile
|
|
6
6
|
Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
pycatfile.py,sha256=B1YJCjwLcNGDv3LtHwu4WNmIvJPI34Hlb-otmpxjE78,427521
|
|
2
|
+
pycatfile-0.22.4.data/scripts/catfile.py,sha256=gR1QkDLg01MxpwaUN0yDPTQgTUx5ysFPEF1a5zBeNVo,14162
|
|
3
|
+
pycatfile-0.22.4.data/scripts/catneofile.py,sha256=b0sJBb-o6Rx5TO_dqXnJz3fCf-yPbEul1_6uX2CRS0Q,5128
|
|
4
|
+
pycatfile-0.22.4.data/scripts/neocatfile.py,sha256=YefEZZAnFwJ63xy2zDnvvs99BOyrHVhT1cPH4TnzrQs,7149
|
|
5
|
+
pycatfile-0.22.4.dist-info/licenses/LICENSE,sha256=WM1VWxTUVrQbvEa-LC7cKTaBHXiqSTyYPoJvsZSbd7E,1513
|
|
6
|
+
pycatfile-0.22.4.dist-info/METADATA,sha256=W_MdOuYQyY-jWCpJwSaBu1QMkwlP6LQHBwEuh5Pkx1k,902
|
|
7
|
+
pycatfile-0.22.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
pycatfile-0.22.4.dist-info/top_level.txt,sha256=ZnSwEHU_60RLIvmFhsATaAaEYjErDQgUymWwoXZ724c,10
|
|
9
|
+
pycatfile-0.22.4.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
10
|
+
pycatfile-0.22.4.dist-info/RECORD,,
|