PyCatFile 0.18.2__tar.gz → 0.19.0__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.18.2 → pycatfile-0.19.0}/PKG-INFO +2 -1
- {pycatfile-0.18.2 → pycatfile-0.19.0}/PyCatFile.egg-info/PKG-INFO +2 -1
- {pycatfile-0.18.2 → pycatfile-0.19.0}/README.md +1 -0
- {pycatfile-0.18.2 → pycatfile-0.19.0}/catfile.py +16 -16
- {pycatfile-0.18.2 → pycatfile-0.19.0}/neocatfile.py +8 -9
- {pycatfile-0.18.2 → pycatfile-0.19.0}/pycatfile.py +546 -536
- {pycatfile-0.18.2 → pycatfile-0.19.0}/pyproject.toml +1 -1
- {pycatfile-0.18.2 → pycatfile-0.19.0}/setup.py +1 -1
- {pycatfile-0.18.2 → pycatfile-0.19.0}/LICENSE +0 -0
- {pycatfile-0.18.2 → pycatfile-0.19.0}/PyCatFile.egg-info/SOURCES.txt +0 -0
- {pycatfile-0.18.2 → pycatfile-0.19.0}/PyCatFile.egg-info/dependency_links.txt +0 -0
- {pycatfile-0.18.2 → pycatfile-0.19.0}/PyCatFile.egg-info/top_level.txt +0 -0
- {pycatfile-0.18.2 → pycatfile-0.19.0}/PyCatFile.egg-info/zip-safe +0 -0
- {pycatfile-0.18.2 → pycatfile-0.19.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: PyCatFile
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.19.0
|
|
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
|
|
@@ -20,3 +20,4 @@ Dynamic: maintainer-email
|
|
|
20
20
|
Dynamic: platform
|
|
21
21
|
|
|
22
22
|
A tar like file format name catfile after unix cat command (concatenate files)
|
|
23
|
+

|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: PyCatFile
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.19.0
|
|
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
|
|
@@ -20,3 +20,4 @@ Dynamic: maintainer-email
|
|
|
20
20
|
Dynamic: platform
|
|
21
21
|
|
|
22
22
|
A tar like file format name catfile after unix cat command (concatenate files)
|
|
23
|
+

|
|
@@ -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:
|
|
17
|
+
$FileInfo: catfile.py - Last Update: 3/7/2025 Ver. 0.19.0 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
|
|
@@ -173,70 +173,70 @@ if active_action:
|
|
|
173
173
|
checkcompressfile = pycatfile.CheckCompressionSubType(
|
|
174
174
|
input_file, fnamedict, True)
|
|
175
175
|
if((IsNestedDict(fnamedict) and compresscheck in fnamedict) or (IsSingleDict(fnamedict) and compresscheck==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.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
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)
|
|
177
177
|
else:
|
|
178
178
|
tmpout = pycatfile.PackCatFileFromInFile(
|
|
179
|
-
input_file, getargs.output, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
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)
|
|
180
180
|
if(not tmpout):
|
|
181
181
|
sys.exit(1)
|
|
182
182
|
else:
|
|
183
|
-
pycatfile.PackCatFile(getargs.input, getargs.output, getargs.text, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, False, [getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
183
|
+
pycatfile.PackCatFile(getargs.input, getargs.output, getargs.text, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, False, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
184
184
|
elif active_action == 'repack':
|
|
185
185
|
if getargs.convert:
|
|
186
186
|
checkcompressfile = pycatfile.CheckCompressionSubType(
|
|
187
187
|
input_file, fnamedict, True)
|
|
188
188
|
if((IsNestedDict(fnamedict) and compresscheck in fnamedict) or (IsSingleDict(fnamedict) and compresscheck==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.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
190
|
+
False, 0, 0, [getargs.checksum, getargs.checksum, getargs.checksum, getargs.checksum], getargs.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
191
191
|
else:
|
|
192
|
-
pycatfile.PackCatFileFromInFile(input_file, getargs.output, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, getargs.verbose, False)
|
|
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.skipchecksum, [], {}, fnamedict, getargs.verbose, False)
|
|
197
|
+
False, 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
201
|
input_file, fnamedict, True)
|
|
202
202
|
tempout = BytesIO()
|
|
203
203
|
if((IsNestedDict(fnamedict) and compresscheck in fnamedict) or (IsSingleDict(fnamedict) and compresscheck==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.skipchecksum, [], {}, fnamedict, False, False)
|
|
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)
|
|
205
205
|
else:
|
|
206
206
|
tmpout = pycatfile.PackCatFileFromInFile(
|
|
207
|
-
input_file, tempout, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, False, False)
|
|
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
211
|
pycatfile.UnPackCatFile(input_file, getargs.output, False, 0, 0, getargs.skipchecksum,
|
|
212
|
-
fnamedict, getargs.verbose, getargs.preserve, getargs.preserve, False)
|
|
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
216
|
input_file, fnamedict, True)
|
|
217
217
|
if((IsNestedDict(fnamedict) and compresscheck in fnamedict) or (IsSingleDict(fnamedict) and compresscheck==fnamedict['format_magic'])):
|
|
218
|
-
tmpout = pycatfile.CatFileListFiles(input_file, "auto", 0, 0, getargs.skipchecksum, fnamedict, getargs.verbose, False)
|
|
218
|
+
tmpout = pycatfile.CatFileListFiles(input_file, "auto", 0, 0, getargs.skipchecksum, fnamedict, False, getargs.verbose, False)
|
|
219
219
|
else:
|
|
220
|
-
tmpout = pycatfile.InFileListFiles(input_file, getargs.verbose, fnamedict, False)
|
|
220
|
+
tmpout = pycatfile.InFileListFiles(input_file, getargs.verbose, fnamedict, 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, getargs.verbose, False)
|
|
224
|
+
pycatfile.CatFileListFiles(input_file, "auto", 0, 0, getargs.skipchecksum, fnamedict, False, getargs.verbose, False)
|
|
225
225
|
elif active_action == 'validate':
|
|
226
226
|
if getargs.convert:
|
|
227
227
|
checkcompressfile = pycatfile.CheckCompressionSubType(
|
|
228
228
|
input_file, fnamedict, True)
|
|
229
229
|
tempout = BytesIO()
|
|
230
230
|
if((IsNestedDict(fnamedict) and compresscheck in fnamedict) or (IsSingleDict(fnamedict) and compresscheck==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.skipchecksum, [], {}, fnamedict, False, False)
|
|
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)
|
|
232
232
|
else:
|
|
233
233
|
tmpout = pycatfile.PackCatFileFromInFile(
|
|
234
|
-
input_file, tempout, __file_format_default__, getargs.compression, getargs.wholefile, getargs.level, pycatfile.compressionlistalt, [getargs.checksum, getargs.checksum, getargs.checksum], [], {}, fnamedict, False, False)
|
|
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)
|
|
235
235
|
input_file = tempout
|
|
236
236
|
if(not tmpout):
|
|
237
237
|
sys.exit(1)
|
|
238
238
|
fvalid = pycatfile.CatFileValidate(
|
|
239
|
-
input_file, "auto", fnamedict, getargs.verbose, False)
|
|
239
|
+
input_file, "auto", fnamedict, False, getargs.verbose, False)
|
|
240
240
|
if(not getargs.verbose):
|
|
241
241
|
import sys
|
|
242
242
|
import logging
|
|
@@ -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: neocatfile.py - Last Update:
|
|
17
|
+
$FileInfo: neocatfile.py - Last Update: 3/7/2025 Ver. 0.19.0 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
|
|
@@ -24,7 +24,6 @@ import pycatfile
|
|
|
24
24
|
__project__ = pycatfile.__project__
|
|
25
25
|
__program_name__ = pycatfile.__program_name__
|
|
26
26
|
__file_format_name__ = pycatfile.__file_format_name__
|
|
27
|
-
__file_format_lower__ = pycatfile.__file_format_lower__
|
|
28
27
|
__file_format_magic__ = pycatfile.__file_format_magic__
|
|
29
28
|
__file_format_len__ = pycatfile.__file_format_len__
|
|
30
29
|
__file_format_hex__ = pycatfile.__file_format_hex__
|
|
@@ -99,26 +98,26 @@ input_file = args.input[0]
|
|
|
99
98
|
# Functionality mappings
|
|
100
99
|
if primary_action == 'create':
|
|
101
100
|
if args.convert == 'tar':
|
|
102
|
-
pycatfile.PackCatFileFromTarFile(input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum], [
|
|
101
|
+
pycatfile.PackCatFileFromTarFile(input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum, args.checksum], [
|
|
103
102
|
], pycatfile.__file_format_dict__, args.verbose, False)
|
|
104
103
|
elif args.convert == 'zip':
|
|
105
|
-
pycatfile.PackCatFileFromZipFile(input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum], [
|
|
104
|
+
pycatfile.PackCatFileFromZipFile(input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum, args.checksum], [
|
|
106
105
|
], pycatfile.__file_format_dict__, args.verbose, False)
|
|
107
106
|
elif py7zr_support and args.convert == '7zip':
|
|
108
|
-
pycatfile.PackCatFileFromSevenZipFile(input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum], [
|
|
107
|
+
pycatfile.PackCatFileFromSevenZipFile(input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum, args.checksum], [
|
|
109
108
|
], pycatfile.__file_format_dict__, args.verbose, False)
|
|
110
109
|
elif rarfile_support and args.convert == 'rar':
|
|
111
|
-
pycatfile.PackCatFileFromRarFile(input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum], [
|
|
110
|
+
pycatfile.PackCatFileFromRarFile(input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum, args.checksum], [
|
|
112
111
|
], pycatfile.__file_format_dict__, args.verbose, False)
|
|
113
112
|
else:
|
|
114
113
|
pycatfile.PackCatFile(args.input, args.output, args.verbose, args.compression, args.level, pycatfile.compressionlistalt,
|
|
115
|
-
False, [args.checksum, args.checksum, args.checksum], [], {}, pycatfile.__file_format_dict__, args.verbose, False)
|
|
114
|
+
False, [args.checksum, args.checksum, args.checksum, args.checksum], [], {}, pycatfile.__file_format_dict__, args.verbose, False)
|
|
116
115
|
elif primary_action == 'repack':
|
|
117
116
|
pycatfile.RePackCatFile(
|
|
118
|
-
input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum], args.verbose)
|
|
117
|
+
input_file, args.output, args.compression, args.level, pycatfile.compressionlistalt, [args.checksum, args.checksum, args.checksum, args.checksum], False, args.verbose)
|
|
119
118
|
elif primary_action == 'extract':
|
|
120
119
|
pycatfile.UnPackCatFile(
|
|
121
|
-
input_file, args.output, args.verbose, args.preserve)
|
|
120
|
+
input_file, args.output, args.verbose, False, args.preserve)
|
|
122
121
|
elif primary_action == 'list':
|
|
123
122
|
if args.convert == 'tar':
|
|
124
123
|
pycatfile.TarFileListFiles(input_file, verbose=args.verbose)
|