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
Metadata
Release files for wordpresstools 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wordpresstools-0.0.3.tar.gz | 2.5 kB | Without provenance | Details for wordpresstools-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wordpresstools-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for wordpresstools-0.0.3-py3-none-any.whl |
Total release size: 6.1 kB
Release files / wordpresstools-0.0.3.tar.gz
| Download URL | wordpresstools-0.0.3.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac2606f94234e2ad9a8daf381cbbadce45e7d69e12f53345e632f05b212cf268
|
|
BLAKE2b-256 checksum How to use checksums |
6582371b7d6e40f078ec8f4c89c6e342be2b64d24f4b1c95595203318bf80d8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / wordpresstools-0.0.3-py3-none-any.whl
| Download URL | wordpresstools-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b004d7623da7ac1a324b473490fc40b247fdadee76653143cfa21520b31a2fe1
|
|
BLAKE2b-256 checksum How to use checksums |
2bb06062f6645baa86cab8334d0e11e625d50bdc570a0592dc4ade2563ed4760
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for wordpresstools 0.0.3
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.