Skip to content

sanderwang/ai1wm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pack/Unpack All-in-One WP Migration Packages

This library provides helper classes for packing/unpacking WordPress All-in-One WP Migration packages.

Installation

pip install ai1wm

Usage

Unpack a File

python -m ai1wm /path/to/the/source/wpress/file /path/to/the/destination/dir

Pack a Directory

python -m ai1wm /path/to/the/source/dir /path/to/the/destination/wpress/file

Coding Examples

Unpack a File

from ai1wm import Ai1wmPackage

package = Ai1wmPackage('/path/to/the/destination/dir')
package.unpack_from('/path/to/the/source/wpress/file')

Pack a Directory

from ai1wm import Ai1wmPackage

package = Ai1wmPackage('/path/to/the/source/dir')
package.pack_to('/path/to/the/destination/wpress/file')