PyCatFile 0.20.4__tar.gz → 0.20.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyCatFile
3
- Version: 0.20.4
3
+ Version: 0.20.8
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyCatFile
3
- Version: 0.20.4
3
+ Version: 0.20.8
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
@@ -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: pycatfile.py - Last Update: 9/12/2025 Ver. 0.20.4 RC 1 - Author: cooldude2k $
17
+ $FileInfo: pycatfile.py - Last Update: 9/16/2025 Ver. 0.20.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
@@ -391,12 +391,12 @@ __file_format_extension__ = __file_format_multi_dict__[__file_format_default__][
391
391
  __file_format_dict__ = __file_format_multi_dict__[__file_format_default__]
392
392
  __project__ = __program_name__
393
393
  __project_url__ = "https://github.com/GameMaker2k/PyCatFile"
394
- __version_info__ = (0, 20, 4, "RC 1", 1)
395
- __version_date_info__ = (2025, 9, 12, "RC 1", 1)
394
+ __version_info__ = (0, 20, 8, "RC 1", 1)
395
+ __version_date_info__ = (2025, 9, 16, "RC 1", 1)
396
396
  __version_date__ = str(__version_date_info__[0]) + "." + str(
397
397
  __version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
398
398
  __revision__ = __version_info__[3]
399
- __revision_id__ = "$Id: ed4b111953476d6699aeb5a2a10363d4f3ed634c $"
399
+ __revision_id__ = "$Id: a69bd62016afabfda33086a3b227152aaf9e7521 $"
400
400
  if(__version_info__[4] is not None):
401
401
  __version_date_plusrc__ = __version_date__ + \
402
402
  "-" + str(__version_date_info__[4])
@@ -8610,15 +8610,15 @@ def UnPackCatFileString(instr, outdir=None, followlink=False, seekstart=0, seeke
8610
8610
 
8611
8611
  def ftype_to_str(ftype):
8612
8612
  mapping = {
8613
- 0: "file",
8614
- 1: "link",
8615
- 2: "symlink",
8616
- 3: "char device",
8617
- 4: "block device",
8618
- 5: "directory",
8619
- 6: "fifo",
8620
- 12: "sparse",
8621
- 14: "device",
8613
+ 0: "file", # file
8614
+ 1: "link", # link
8615
+ 2: "sym", # symlink
8616
+ 3: "cdev", # char device
8617
+ 4: "bdev", # block device
8618
+ 5: "dir", # directory
8619
+ 6: "fifo", # fifo
8620
+ 12: "spar", # sparse
8621
+ 14: "dev", # generic device
8622
8622
  }
8623
8623
  # Default to "file" if unknown
8624
8624
  return mapping.get(ftype, "file")
@@ -9215,6 +9215,43 @@ def ListDirListFiles(infiles, dirlistfromtxt=False, compression="auto", compress
9215
9215
  outarray, seekstart, seekend, skipchecksum, formatspecs, seektoend, verbose, returnfp)
9216
9216
  return listarchivefiles
9217
9217
 
9218
+ """
9219
+ PyNeoFile compatibility layer
9220
+ """
9221
+
9222
+ def make_empty_file_pointer_neo(fp, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8'):
9223
+ return MakeEmptyFilePointer(fp, fmttype, checksumtype, formatspecs)
9224
+
9225
+ def make_empty_archive_file_pointer_neo(fp, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8'):
9226
+ return make_empty_file_pointer_neo(fp, fmttype, checksumtype, formatspecs, encoding)
9227
+
9228
+ def make_empty_file_neo(outfile=None, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8', returnfp=False):
9229
+ return MakeEmptyFile(outfile, fmttype, "auto", False, None, checksumtype, formatspecs, returnfp)
9230
+
9231
+ def make_empty_archive_file_neo(outfile=None, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8', returnfp=False):
9232
+ return make_empty_file_neo(outfile, fmttype, checksumtype, formatspecs, encoding, returnfp)
9233
+
9234
+ def pack_neo(infiles, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], encoding="UTF-8", compression="auto", compression_level=None, returnfp=False):
9235
+ return PackCatFile(infiles, outfile, False, "auto", compression, False, compression_level, compressionlistalt, False, checksumtypes, [], {}, formatspecs, False, returnfp)
9236
+
9237
+ def archive_to_array_neo(infile, formatspecs=None, listonly=False, skipchecksum=False, uncompress=True, returnfp=False):
9238
+ return CatFileToArray(infile, "auto", 0, 0, listonly, True, uncompress, skipchecksum, formatspecs, False, returnfp)
9239
+
9240
+ def unpack_neo(infile, outdir='.', formatspecs=None, skipchecksum=False, uncompress=True, returnfp=False):
9241
+ return UnPackCatFile(infile, outdir, False, 0, 0, skipchecksum, formatspecs, True, True, False, False, returnfp)
9242
+
9243
+ def repack_neo(infile, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], compression="auto", compression_level=None, returnfp=False):
9244
+ return RePackCatFile(infile, outfile, "auto", compression, False, compression_level, compressionlistalt, False, 0, 0, checksumtypes, False, [], {}, formatspecs, False, False, returnfp)
9245
+
9246
+ def archivefilevalidate_neo(infile, formatspecs=None, verbose=False, return_details=False, returnfp=False):
9247
+ return CatFileValidate(infile, "auto", formatspecs, False, verbose, returnfp)
9248
+
9249
+ def archivefilelistfiles_neo(infile, formatspecs=None, advanced=False, include_dirs=True, returnfp=False):
9250
+ return CatFileListFiles(infile, "auto", 0, 0, False, formatspecs, False, True, advanced, returnfp)
9251
+
9252
+ def convert_foreign_to_neo(infile, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], compression="auto", compression_level=None, returnfp=False):
9253
+ intmp = InFileToArray(infile, 0, 0, False, True, False, formatspecs, False, False)
9254
+ return RePackCatFile(intmp, outfile, "auto", compression, False, compression_level, compressionlistalt, False, 0, 0, checksumtypes, False, [], {}, formatspecs, False, False, returnfp)
9218
9255
 
9219
9256
  def download_file_from_ftp_file(url):
9220
9257
  urlparts = urlparse(url)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "PyCatFile"
3
- version = "0.20.4"
3
+ version = "0.20.8"
4
4
  readme = "README.md"
5
5
  license = { text = "BSD-3-Clause" }
6
6
  keywords = []
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes