Skip to main content

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

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.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wordpresstools-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file wordpresstools-0.0.3.tar.gz.

File metadata

  • Download URL: wordpresstools-0.0.3.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

File hashes

Hashes for wordpresstools-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ac2606f94234e2ad9a8daf381cbbadce45e7d69e12f53345e632f05b212cf268
MD5 b261b7f4d66c15cd4b55b36a38b98f32
BLAKE2b-256 6582371b7d6e40f078ec8f4c89c6e342be2b64d24f4b1c95595203318bf80d8a

See more details on using hashes here.

File details

Details for the file wordpresstools-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: wordpresstools-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

File hashes

Hashes for wordpresstools-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b004d7623da7ac1a324b473490fc40b247fdadee76653143cfa21520b31a2fe1
MD5 e22191d5ed9a8655f37a2d493c8ab302
BLAKE2b-256 2bb06062f6645baa86cab8334d0e11e625d50bdc570a0592dc4ade2563ed4760

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page