/PyCAB

A Python library to manipulate Microsoft Cabinet files

Primary LanguagePythonMIT LicenseMIT

PyCAB

Build Status Latest Version Downloads

A Python library to manipulate Microsoft Cabinet files

Features

  • Write simple .CAB files
  • Write .CAB SETs
  • Read .CAB structure
  • Extract data from simple .CABs and SETs

Author

Todo

  • Improve the current test code coverage
  • Improve the manager interface for usage
  • Implement MSZIP

Writer Usage

    folder = CABFolderUnit(name="folder", filename_list=[r"./TestsFiles/pe101.jpg",
					 		 r"./TestsFiles/andy_C.mp3",
							 r"./TestsFiles/super_saiyajin.jpg"
							 ])
    manager = CABManager()
    manager.create_cab(cab_folders=[folder], cab_name="my_cab_[x].cab", cab_size=1474*1024*16)
    manager.flush_cabset_to_disk(output_dir=r"./TestsFiles/")

Information about CABINET format

https://msdn.microsoft.com/en-us/library/bb417343.aspx