Code Monkey home page Code Monkey logo

imagepyx's Introduction

ImagePyX and SSWIMM

This is a Super Simple WIM Manager written entirely in Python[1].

Main compression support is provided by wimlib 1.3.2 (look at http://sourceforge.net/projects/wimlib)[2]: optionally, the MSCompression library can be used (found at https://github.com/coderforlife/ms-compress), but its LZX codec is quite unmature at this time.

With ImagePyX you can:

  • capture a directory tree to a WIM Image, eventually compressing it and excluding files/folders
  • update or delete an image inside a WIM
  • append new images to a WIM
  • apply (extract) an image from WIM unit to a directory, optionally excluding files/folders
  • split a WIM into more SWM units
  • export one or all images to an old/new WIM
  • list and test image contents

On Windows, it can use the native RTL Xpress codec (8 only) and provides complete handling of:

  • short names
  • security permissions [4]
  • alternate data streams
  • hard links
  • directory junctions
  • symbolic links[3]

On Linux, it can handle hard and symbolic links; also, it's able to capture and restore UNIX permissions (UID, GID, MODE).

Useful links about WIM Images:

FOLDER CONTENTS:

  • ImagePyX.py the main Python module (rev. 0.29), driver for the SSWIMM package
  • SSWIMM package directory containing the submodules
  • README.MD this file
  • REVISIONS.TXT developement history and todo
  • gpl.txt GPL v2 license file: it applies to this package
  • mingw_build.sh script to help building a reduced wimlib under Windows
  • make_test.sh sample minimal script to test under Linux

Look at REVISIONS.TXT for details about developement history and things to do.

[1] Developed and tested on Windows with Python 2.7.3, 32-bit; tested with Linux Ubuntu 12.10, x32

[2] A simplified version with the codecs only can be built with GCC 4.7 on Windows: look at mingw_build.sh

[3] Administrator rights are required to restore (create) symbolic links

[4] Special privileges are needed to apply SACLs

imagepyx's People

Contributors

b- avatar jorgecis avatar maxpat78 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

imagepyx's Issues

Error getting info in the 2016 media

Hi,

I found an issue using the windows 2016 media, the xml looks incomplete or with garbage

python ImagePyX.py --info /media/sr3/sources/install.wim
Opening WIM unit...
Compression is LZX

WIM Information:

Path: /media/sr3/sources/install.wim
GUID: {18b148ab-6ab8-45ea-95cc-cb5186a04d7e}
Image Count: 1
Compression: LZX
Part Number: 1/1
Attributes: 40082

Available Image choices:

Traceback (most recent call last):
File "ImagePyX.py", line 107, in
info(opts, args)
File "/root/ImagePyX-master/SSWIMM/SSWIMMI.py", line 88, in info
xml = minidom.parse(fp)
File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1918, in parse
return expatbuilder.parse(file)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 928, in parse
result = builder.parseFile(file)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 13

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.