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.0.tar.gz
(2.1 kB
view details)
Built Distribution
woppy-0.1.0-py3-none-any.whl
(2.3 kB
view details)
File details
Details for the file woppy-0.1.0.tar.gz
.
File metadata
- Download URL: woppy-0.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ec81466bd7ce6de9e620bb15e52070df16f0d0a0259147de9c76a2d0856ce2e |
|
MD5 | 70a288f6628f8288adaa96e0fc84e04c |
|
BLAKE2b-256 | c5580f903deffd8d6d35b6a002a670f407ecbddd9a88c147ef12571e845aa94d |
File details
Details for the file woppy-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: woppy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 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 | 1f703eb674b99a8e72a31c7b0755df7ef44c3f584cbcaf81c91e31186cc1d583 |
|
MD5 | 8f83910be61201547410d48d115e1975 |
|
BLAKE2b-256 | 69dad2bfb46889dd79e8c25eb824d80829b5f381dbbcd41ae75c342d92d1acff |