Skip to main content

wpexport

This small python package backup your Wordpress post to GitHub. It convert the html to Markdown with pypandoc. For the api interaction, I uses the two packages gitpython and python-wordpress-xmlrpc. So you have to install this dependence, if you wand to install it from source.

quick start

Install wpexport:

pip install wpexport

It uses pandoc for the formatting. you may have to install it manually.

sudo apt install pandoc

More information https://pandoc.org/installing.html

Set up your settings:

python -m wpexport --setup

and when you have to input all the parameters. After that it will save the parameters in the file ~.wpexport.conf. Notice that your passwords are in this file.

Now you are ready to have some fun.

python -m wpexport

command line arguments

This command export all your post to the GitHub repo. If you didn't like the config file, you can pass the parameter throw the terminal. Use the name of the parameter as the command option. The command option will always override the config file. For axample you cann uses the config file for all parametes exclude the password. And then pass the password throw the command line.

python -m wpexport --wp_pw 1234

the config file

You can also uses another config file. For the setup as well as the backup function.

python -m wpexport --config "/path/to/your/config.json"

The config file is a basic json file. You can look into it and change the values, if you like.

only local export

If you didn't like GitHub, only export it to your local machine.

python -m wpexport --output "/path/to/your/export"

how does it work?

Coming soon.

development

Clone repo:

git clone https://github.com/axju/wpexport.git

Create virtual environment and update dev-tools:

python3 -m venv venv
source venv/bin/activate
pip install --upgrade wheel pip setuptools twine

Install wpexport:

pip install -e .

Publish the packages:

python setup.py sdist bdist_wheel
twine upload dist/*

Metadata

Release files for wpexport 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wpexport 0.0.2
File Size Uploaded Provenance
wpexport-0.0.2.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for wpexport 0.0.2
File Interpreter ABI Platform
wpexport-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / wpexport-0.0.2.tar.gz

Download URL wpexport-0.0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f4ff735925c7c7e0263a918c3c11ed4ecb3409eb9034cf087737e48c8bc9f7a0
BLAKE2b-256 checksum
How to use checksums
a521418dca0ebd23c2fa552c6d0f8d24f37811ab147144a0c2327729ccd6a613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Release files / wpexport-0.0.2-py3-none-any.whl

Download URL wpexport-0.0.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
131a8a03700c08c3256951a0e897a0b628d01f3ced46732ef6f3c8203957156a
BLAKE2b-256 checksum
How to use checksums
3fcc6d4a4d7ef82c26f8b7647248cd7f9f688b790f1df2e898968f1a80713e1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

Security for wpexport 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page