PyCatFile 0.5.0__tar.gz → 0.5.2__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.5.0 → PyCatFile-0.5.2}/PKG-INFO +2 -3
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/PyCatFile.egg-info/PKG-INFO +2 -3
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/catfile.py +13 -4
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/pycatfile.py +769 -214
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/setup.py +1 -1
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/LICENSE +0 -0
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/PyCatFile.egg-info/SOURCES.txt +0 -0
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/PyCatFile.egg-info/dependency_links.txt +0 -0
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/PyCatFile.egg-info/top_level.txt +0 -0
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/PyCatFile.egg-info/zip-safe +0 -0
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/README.md +0 -0
- {PyCatFile-0.5.0 → PyCatFile-0.5.2}/setup.cfg +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyCatFile
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
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
|
+
Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
|
|
6
7
|
Author: Kazuki Przyborowski
|
|
7
8
|
Author-email: kazuki.przyborowski@gmail.com
|
|
8
9
|
Maintainer: Kazuki Przyborowski
|
|
9
10
|
Maintainer-email: kazuki.przyborowski@gmail.com
|
|
10
11
|
License: Revised BSD License
|
|
11
|
-
Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
|
|
12
12
|
Keywords: catfile pycatfile python python-catfile
|
|
13
13
|
Platform: OS Independent
|
|
14
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -33,4 +33,3 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
33
33
|
License-File: LICENSE
|
|
34
34
|
|
|
35
35
|
A tar like file format name catfile after unix cat command (concatenate files) .
|
|
36
|
-
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyCatFile
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.2
|
|
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
|
+
Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
|
|
6
7
|
Author: Kazuki Przyborowski
|
|
7
8
|
Author-email: kazuki.przyborowski@gmail.com
|
|
8
9
|
Maintainer: Kazuki Przyborowski
|
|
9
10
|
Maintainer-email: kazuki.przyborowski@gmail.com
|
|
10
11
|
License: Revised BSD License
|
|
11
|
-
Download-URL: https://github.com/GameMaker2k/PyCatFile/archive/master.tar.gz
|
|
12
12
|
Keywords: catfile pycatfile python python-catfile
|
|
13
13
|
Platform: OS Independent
|
|
14
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
@@ -33,4 +33,3 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
33
33
|
License-File: LICENSE
|
|
34
34
|
|
|
35
35
|
A tar like file format name catfile after unix cat command (concatenate files) .
|
|
36
|
-
|
|
@@ -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: 3/
|
|
17
|
+
$FileInfo: catfile.py - Last Update: 3/17/2024 Ver. 0.5.2 RC 1 - Author: cooldude2k $
|
|
18
18
|
'''
|
|
19
19
|
|
|
20
20
|
from __future__ import absolute_import, division, print_function, unicode_literals;
|
|
@@ -78,6 +78,7 @@ argparser.add_argument("-V", "--version", action="version", version=__program_na
|
|
|
78
78
|
argparser.add_argument("-i", "-f", "--input", help="Specify the file(s) to concatenate or the concatenated file to extract.", required=True);
|
|
79
79
|
argparser.add_argument("-d", "-v", "--verbose", action="store_true", help="Enable verbose mode to display various debugging information.");
|
|
80
80
|
argparser.add_argument("-c", "--create", action="store_true", help="Perform concatenation operation only.");
|
|
81
|
+
argparser.add_argument("-validate", "--validate", action="store_true", help="Validate CatFile checksums");
|
|
81
82
|
argparser.add_argument("-checksum", "--checksum", default="crc32", help="Specify the type of checksum to use. Default is crc32.");
|
|
82
83
|
argparser.add_argument("-e", "-x", "--extract", action="store_true", help="Perform extraction operation only.");
|
|
83
84
|
argparser.add_argument("-format", "--format", default=__file_format_list__[0], help="Specify the format to use");
|
|
@@ -109,6 +110,7 @@ should_create = getargs.create and not getargs.extract and not getargs.list;
|
|
|
109
110
|
should_extract = getargs.extract and not getargs.create and not getargs.list;
|
|
110
111
|
should_list = getargs.list and not getargs.create and not getargs.extract;
|
|
111
112
|
should_repack = getargs.create and getargs.repack;
|
|
113
|
+
should_validate = getargs.validate;
|
|
112
114
|
|
|
113
115
|
# Execute the appropriate functions based on determined actions and arguments
|
|
114
116
|
if should_create:
|
|
@@ -121,13 +123,13 @@ if should_create:
|
|
|
121
123
|
else:
|
|
122
124
|
pycatfile.PackArchiveFile(getargs.input, getargs.output, getargs.text, getargs.compression, getargs.level, False, getargs.checksum, [], fnamelist, getargs.verbose, False);
|
|
123
125
|
|
|
124
|
-
|
|
126
|
+
elif should_repack:
|
|
125
127
|
pycatfile.RePackArchiveFile(getargs.input, getargs.output, getargs.compression, getargs.level, False, 0, 0, getargs.checksum, False, [], fnamelist, getargs.verbose, False);
|
|
126
128
|
|
|
127
|
-
|
|
129
|
+
elif should_extract:
|
|
128
130
|
pycatfile.UnPackArchiveFile(getargs.input, getargs.output, False, 0, 0, False, fnamelist, getargs.verbose, getargs.preserve, getargs.preserve, False);
|
|
129
131
|
|
|
130
|
-
|
|
132
|
+
elif should_list:
|
|
131
133
|
if getargs.converttar:
|
|
132
134
|
pycatfile.TarFileListFiles(getargs.input, getargs.verbose, False);
|
|
133
135
|
elif getargs.convertzip:
|
|
@@ -136,3 +138,10 @@ if should_list:
|
|
|
136
138
|
pycatfile.RarFileListFiles(getargs.input, getargs.verbose, False);
|
|
137
139
|
else:
|
|
138
140
|
pycatfile.ArchiveFileListFiles(getargs.input, 0, 0, False, fnamelist, getargs.verbose, False);
|
|
141
|
+
|
|
142
|
+
elif should_validate:
|
|
143
|
+
fvalid = pycatfile.ArchiveFileValidate(getargs.input, fnamelist, getargs.verbose, False);
|
|
144
|
+
if(fvalid):
|
|
145
|
+
pycatfile.VerbosePrintOut("File is valid: " + str(getargs.input));
|
|
146
|
+
else:
|
|
147
|
+
pycatfile.VerbosePrintOut("File is invalid: " + str(getargs.input));
|