Skip to main content

A small set of tools for administration of WordPress installations

Project description

Python WordPress Tool

A collection of tools for managing WordPress installations



Class to extract variables from a PHP file as key value pairs in a Python dict.


$ pip install wordpresstools


(example-env) utegrad@COMPUTER:/mnt/d/sources/wpcreds$ ipython
Python 3.6.8 (default, Jan 14 2019, 11:02:34)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.7.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from wptools.PhpVariableExtractor import Extractor

In [2]: php_vars = Extractor.extract('wp-config.php')

In [3]: print(php_vars['DB_HOST'])

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wordpresstools, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size wordpresstools-0.0.3-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wordpresstools-0.0.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page