一套管理wordpress安装的小工具

wordpresstools的Python项目详细描述


python wordpress工具

A collection of tools for managing WordPress installations

PHP变量提取器

提取器

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'])
10.10.0.44

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java是安卓的子类。所容纳之物ClipData或ClipData。项目   毕加索中的java错误get()无法应用于(安卓.content.Context)   管道接受来自控制台和管道文本文件的Java输入   Java Windows文件权限   java如何在Selenium中找到此按钮?我尝试了partiallinktext并多次尝试cssSelector   java如何在spring jdbc模板中生成流式sql?   方法中的java全局值变为null   java设备“Mobile Intel(R)4 Series Express芯片组系列”(\\.\DISPLAY1)初始化失败:   java查找单独文件夹中的资源到类文件   java iCal4j添加会议说明   java如何处理InvalidTokenException?   oop如果Java不支持运算符重载,增量运算符如何在整数实例上工作?   java如何在Hibernate中获取<map>