PyArchiveFile 0.20.4__py3-none-any.whl → 0.20.8__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyArchiveFile
3
- Version: 0.20.4
3
+ Version: 0.20.8
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
@@ -0,0 +1,9 @@
1
+ pyarchivefile.py,sha256=2LKjEK6C11XKvh3X3tKZTUuwBi6jkCif_tp73M2NKmQ,436955
2
+ pyarchivefile-0.20.8.data/scripts/archivefile.py,sha256=-kIv-dbAFTL6ry1ntyLBW1Rffg7Bl4vulSlrjFb5R3w,14270
3
+ pyarchivefile-0.20.8.data/scripts/neoarchivefile.py,sha256=plAMPRkKOUeqogjs7mjoI3W8jIYVpVeSgA_MLwvbo68,7333
4
+ pyarchivefile-0.20.8.dist-info/licenses/LICENSE,sha256=WM1VWxTUVrQbvEa-LC7cKTaBHXiqSTyYPoJvsZSbd7E,1513
5
+ pyarchivefile-0.20.8.dist-info/METADATA,sha256=nYhUAXEoWga82Gu3bRnPbvkD4-uqtwE6P5qlnvNXhnI,735
6
+ pyarchivefile-0.20.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ pyarchivefile-0.20.8.dist-info/top_level.txt,sha256=dXsHVLesKNVXuVZeri6pRuRPo3y1HrcPsUrIw5KU5fk,14
8
+ pyarchivefile-0.20.8.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
+ pyarchivefile-0.20.8.dist-info/RECORD,,
pyarchivefile.py CHANGED
@@ -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: pyarchivefile.py - Last Update: 9/12/2025 Ver. 0.20.4 RC 1 - Author: cooldude2k $
17
+ $FileInfo: pyarchivefile.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
@@ -379,12 +379,12 @@ __file_format_extension__ = __file_format_multi_dict__[__file_format_default__][
379
379
  __file_format_dict__ = __file_format_multi_dict__[__file_format_default__]
380
380
  __project__ = __program_name__
381
381
  __project_url__ = "https://github.com/GameMaker2k/PyArchiveFile"
382
- __version_info__ = (0, 20, 4, "RC 1", 1)
383
- __version_date_info__ = (2025, 9, 12, "RC 1", 1)
382
+ __version_info__ = (0, 20, 8, "RC 1", 1)
383
+ __version_date_info__ = (2025, 9, 16, "RC 1", 1)
384
384
  __version_date__ = str(__version_date_info__[0]) + "." + str(
385
385
  __version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2)
386
386
  __revision__ = __version_info__[3]
387
- __revision_id__ = "$Id: 17416f6730bffce19d261cecc1ba385ae7e6a017 $"
387
+ __revision_id__ = "$Id: a7748608b447590b70022b5ee2ae2f98c891c535 $"
388
388
  if(__version_info__[4] is not None):
389
389
  __version_date_plusrc__ = __version_date__ + \
390
390
  "-" + str(__version_date_info__[4])
@@ -8598,15 +8598,15 @@ def UnPackArchiveFileString(instr, outdir=None, followlink=False, seekstart=0, s
8598
8598
 
8599
8599
  def ftype_to_str(ftype):
8600
8600
  mapping = {
8601
- 0: "file",
8602
- 1: "link",
8603
- 2: "symlink",
8604
- 3: "char device",
8605
- 4: "block device",
8606
- 5: "directory",
8607
- 6: "fifo",
8608
- 12: "sparse",
8609
- 14: "device",
8601
+ 0: "file", # file
8602
+ 1: "link", # link
8603
+ 2: "sym", # symlink
8604
+ 3: "cdev", # char device
8605
+ 4: "bdev", # block device
8606
+ 5: "dir", # directory
8607
+ 6: "fifo", # fifo
8608
+ 12: "spar", # sparse
8609
+ 14: "dev", # generic device
8610
8610
  }
8611
8611
  # Default to "file" if unknown
8612
8612
  return mapping.get(ftype, "file")
@@ -9203,6 +9203,43 @@ def ListDirListFiles(infiles, dirlistfromtxt=False, compression="auto", compress
9203
9203
  outarray, seekstart, seekend, skipchecksum, formatspecs, seektoend, verbose, returnfp)
9204
9204
  return listarchivefiles
9205
9205
 
9206
+ """
9207
+ PyNeoFile compatibility layer
9208
+ """
9209
+
9210
+ def make_empty_file_pointer_neo(fp, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8'):
9211
+ return MakeEmptyFilePointer(fp, fmttype, checksumtype, formatspecs)
9212
+
9213
+ def make_empty_archive_file_pointer_neo(fp, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8'):
9214
+ return make_empty_file_pointer_neo(fp, fmttype, checksumtype, formatspecs, encoding)
9215
+
9216
+ def make_empty_file_neo(outfile=None, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8', returnfp=False):
9217
+ return MakeEmptyFile(outfile, fmttype, "auto", False, None, checksumtype, formatspecs, returnfp)
9218
+
9219
+ def make_empty_archive_file_neo(outfile=None, fmttype=None, checksumtype='crc32', formatspecs=None, encoding='UTF-8', returnfp=False):
9220
+ return make_empty_file_neo(outfile, fmttype, checksumtype, formatspecs, encoding, returnfp)
9221
+
9222
+ def pack_neo(infiles, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], encoding="UTF-8", compression="auto", compression_level=None, returnfp=False):
9223
+ return PackArchiveFile(infiles, outfile, False, "auto", compression, False, compression_level, compressionlistalt, False, checksumtypes, [], {}, formatspecs, False, returnfp)
9224
+
9225
+ def archive_to_array_neo(infile, formatspecs=None, listonly=False, skipchecksum=False, uncompress=True, returnfp=False):
9226
+ return ArchiveFileToArray(infile, "auto", 0, 0, listonly, True, uncompress, skipchecksum, formatspecs, False, returnfp)
9227
+
9228
+ def unpack_neo(infile, outdir='.', formatspecs=None, skipchecksum=False, uncompress=True, returnfp=False):
9229
+ return UnPackArchiveFile(infile, outdir, False, 0, 0, skipchecksum, formatspecs, True, True, False, False, returnfp)
9230
+
9231
+ def repack_neo(infile, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], compression="auto", compression_level=None, returnfp=False):
9232
+ return RePackArchiveFile(infile, outfile, "auto", compression, False, compression_level, compressionlistalt, False, 0, 0, checksumtypes, False, [], {}, formatspecs, False, False, returnfp)
9233
+
9234
+ def archivefilevalidate_neo(infile, formatspecs=None, verbose=False, return_details=False, returnfp=False):
9235
+ return ArchiveFileValidate(infile, "auto", formatspecs, False, verbose, returnfp)
9236
+
9237
+ def archivefilelistfiles_neo(infile, formatspecs=None, advanced=False, include_dirs=True, returnfp=False):
9238
+ return ArchiveFileListFiles(infile, "auto", 0, 0, False, formatspecs, False, True, advanced, returnfp)
9239
+
9240
+ def convert_foreign_to_neo(infile, outfile=None, formatspecs=None, checksumtypes=["crc32", "crc32", "crc32", "crc32"], compression="auto", compression_level=None, returnfp=False):
9241
+ intmp = InFileToArray(infile, 0, 0, False, True, False, formatspecs, False, False)
9242
+ return RePackArchiveFile(intmp, outfile, "auto", compression, False, compression_level, compressionlistalt, False, 0, 0, checksumtypes, False, [], {}, formatspecs, False, False, returnfp)
9206
9243
 
9207
9244
  def download_file_from_ftp_file(url):
9208
9245
  urlparts = urlparse(url)
@@ -1,9 +0,0 @@
1
- pyarchivefile.py,sha256=pdRLEYkqH_gtcqYGpE44RKd8-lGgi-xRHtjOrJJWnkA,433908
2
- pyarchivefile-0.20.4.data/scripts/archivefile.py,sha256=-kIv-dbAFTL6ry1ntyLBW1Rffg7Bl4vulSlrjFb5R3w,14270
3
- pyarchivefile-0.20.4.data/scripts/neoarchivefile.py,sha256=plAMPRkKOUeqogjs7mjoI3W8jIYVpVeSgA_MLwvbo68,7333
4
- pyarchivefile-0.20.4.dist-info/licenses/LICENSE,sha256=WM1VWxTUVrQbvEa-LC7cKTaBHXiqSTyYPoJvsZSbd7E,1513
5
- pyarchivefile-0.20.4.dist-info/METADATA,sha256=eyaWTooBbPAQJiIgk2eLXrk6BA-PNi24tSh_4v_dgco,735
6
- pyarchivefile-0.20.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- pyarchivefile-0.20.4.dist-info/top_level.txt,sha256=dXsHVLesKNVXuVZeri6pRuRPo3y1HrcPsUrIw5KU5fk,14
8
- pyarchivefile-0.20.4.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
- pyarchivefile-0.20.4.dist-info/RECORD,,