A Python library to manage WordPress sites via the REST API
Project description
Woppy
Woppy is a Python library to manage WordPress sites via the REST API.
Installation
pip install woppy
## Usage
```python
from woppy import Woppy
woppy = Woppy('https://your-wordpress-site.com', 'your-username', 'your-password')
# Create a new post
new_post = woppy.create_post('My New Post', 'This is the content of my new post')
# Update an existing post
updated_post = woppy.update_post(new_post['id'], title='Updated Title')
# Get categories
categories = woppy.get_categories()
# Create a new category
new_category = woppy.create_category('New Category', 'This is a new category')
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
woppy-0.1.2.tar.gz
(2.0 kB
view details)
Built Distribution
woppy-0.1.2-py3-none-any.whl
(2.2 kB
view details)
File details
Details for the file woppy-0.1.2.tar.gz
.
File metadata
- Download URL: woppy-0.1.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd5e32b32a61939e0a02a62d661670fd46284d922f30f07a304ea99b78ebf3b6 |
|
MD5 | b6aebb7d5cf9c85ee1eb4faaec82be96 |
|
BLAKE2b-256 | 74dbee66215ca24b0c4fca3b63c710cc09c392acd3ba1e0b51ba4829defa3d9e |
File details
Details for the file woppy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: woppy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d756fea00003d091bc8ff2a6076fc88027199a2705d186947a31ae6182a86365 |
|
MD5 | 502ad2c2070a0a9e4b518b4caf803635 |
|
BLAKE2b-256 | f8a4147f6a70d5e07fc31a68bdf9c6b0e7b4af9b08e8928efca851739fce3882 |