A small set of tools for administration of WordPress installations
Project description
Python WordPress Tool
A collection of tools for managing WordPress installations
PhpVariableExtractor
Extractor
Class to extract variables from a PHP file as key value pairs in a Python dict.
Install
$ pip install wordpresstools
Usage
(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'])
10.10.0.44
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wordpresstools-0.0.2.tar.gz
(2.3 kB
view details)
Built Distribution
File details
Details for the file wordpresstools-0.0.2.tar.gz
.
File metadata
- Download URL: wordpresstools-0.0.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
51a562366dfda98faccb47ed719a4676cd7b7c703e802e00ae7821805b6f7783
|
|
MD5 |
9df18359d5896242fd9e35f18fe55f05
|
|
BLAKE2b-256 |
5196be73bf06ee28917adca65ba4d0898b4e5bd45a668a0499761ad7f3a814d1
|
File details
Details for the file wordpresstools-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: wordpresstools-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
195467d0a2d7c8ab11438204322f135d3f9e3f47e256774a4d29337b6b9ee7b7
|
|
MD5 |
5f6810b196a16cb56ef0589d909df06f
|
|
BLAKE2b-256 |
9015723e3a65612b5869c1aeecac2674ddc671ca7a5484c9675e80d51faced48
|