This library provides helper classes for packing/unpacking WordPress All-in-One WP Migration packages.
pip install ai1wm
python -m ai1wm /path/to/the/source/wpress/file /path/to/the/destination/dir
python -m ai1wm /path/to/the/source/dir /path/to/the/destination/wpress/file
from ai1wm import Ai1wmPackage
package = Ai1wmPackage('/path/to/the/destination/dir')
package.unpack_from('/path/to/the/source/wpress/file')
from ai1wm import Ai1wmPackage
package = Ai1wmPackage('/path/to/the/source/dir')
package.pack_to('/path/to/the/destination/wpress/file')