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.1.tar.gz
(2.1 kB
view details)
Built Distribution
woppy-0.1.1-py3-none-any.whl
(2.3 kB
view details)
File details
Details for the file woppy-0.1.1.tar.gz
.
File metadata
- Download URL: woppy-0.1.1.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 | ef2d739ca804aa7fd44e7106db84b100c7aa20abc2828a97bb7f6c52614b72ac |
|
MD5 | 7716a5cdbc0de8507069c016fc74663c |
|
BLAKE2b-256 | 4ca7561cf876fffde3d018cb99cf62835177259bb290284ddc5d83c382bbb9a6 |
File details
Details for the file woppy-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: woppy-0.1.1-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 | da31767f92847280ac2e428a19e2bf720ec5bdd7858beb51058c615594f68f27 |
|
MD5 | a306bcb72e69f1e29756261a19323e8d |
|
BLAKE2b-256 | 522e04a450dbf6b2c09c7a801a60d88389f4517d9d55faa07ee93d5892f12338 |