ai1wm

Packs/Unpacks `All-in-One WP Migration` packages


Keywords
WordPress, All-in-One, WP, Migration
License
MIT
Install
pip install ai1wm==1.2.3

Documentation

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')