wpadmin
wpadmin is a Python module for managing WordPress installations from the command line. Inspiration comes from both django-admin.py and WP-CLI.
Installing
$ pip install wpadmin
Usage
From the root of your WordPress project (directory containing wp-load.php):
$ wpadmin starttheme [--classic] my-theme-name
The starttheme command will create the following directory structure within the wp-contents/themes/ directory:
- my-theme-name
- templates/
- base.twig
- static/
- css/
- images/
- js/
- 404.php
- functions.php
- index.php
- README.md
- style.css
The above structure assumes you will be using the Twig template engine via the Timber plugin. The starttheme command with the --classic option will create the following directory structure within the wp-contents/themes/ directory:
- my-theme-name - css/ - images/ - js/ - 404.php - functions.php - index.php - README.md - style.css
To create a plugin skeleton:
$ wpadmin startplugin my-plugin-name
The startplugin command will create the following directory structure within the wp-contents/plugins/ directory:
- my-plugin-name - my-plugin.name.php - README.md
Metadata
Release files for wpadmin 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wpadmin-0.1.0.zip | 6.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wpadmin-0.1.0.win32-py2.7.exe | Details | |||
| wpadmin-0.1.0-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size: 251.7 kB
Release files / wpadmin-0.1.0.zip
| Download URL | wpadmin-0.1.0.zip |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4831bf52f383e1f50482ab66d421fbda3b607867cc7920b8661d94acfc26229
|
|
BLAKE2b-256 checksum How to use checksums |
49d676a2fe3693516fc6d6522ebcb5f53692b439262dbb6e4aa87bb9e92f72f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wpadmin-0.1.0.win32-py2.7.exe
| Download URL | wpadmin-0.1.0.win32-py2.7.exe |
|---|---|
| Size | 239.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
220d443bf90170370b3080afc0d7d4427aa53bd0c8bdf6e35429163b46168ea2
|
|
BLAKE2b-256 checksum How to use checksums |
ae7054179959053cdfd94675d21fc0a54ee08e789d30d4d3c9fdfb23fae04a54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wpadmin-0.1.0-py2.7.egg
| Download URL | wpadmin-0.1.0-py2.7.egg |
|---|---|
| Size | 5.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
8f51457a1fbd603da55728ce78b5b6fe7b3c667e69ee4246a5cd673586b0a6e4
|
|
BLAKE2b-256 checksum How to use checksums |
553e3df1d65062448a5e35c732c794eda182264f8b84d98ea4069525a12cc6dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |