Skip to main content

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

from woppy import Woppy

# Site URL, Username and Application Password
woppy = Woppy('https://your-wordpress-site.com', 'your-username', 'your-application-password')

# New Category
new_category = woppy.categories.create_category('New Category', 'This is a new category')

# New Tag
new_tag = woppy.tags.create_tag('New Tag', 'This is a new tag')

# New Post and assign the new category and tag
new_post = woppy.posts.create_post(
    title='My New Post',
    content='This is the content of my new post',
    status='publish',
    categories=[new_category['id']],  # Category ID
    tags=[new_tag['id']],              # Tag ID
)

# Get all plugins
plugins = woppy.plugins.get_plugins()

# Activate Akismet plugin
woppy.plugins.activate_plugin('akismet/akismet')

# Deactivate Akismet plugin
woppy.plugins.deactivate_plugin('akismet/akismet')

Planned Updates

  • Delete Tag
  • Delete Media
  • Delete Category
  • Delete Post
  • Upload Media
  • Search Plugin From WordPress Repository

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

woppy-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

woppy-1.0.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file woppy-1.0.0.tar.gz.

File metadata

  • Download URL: woppy-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for woppy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2ad261c4ced57895aae1c21e281a63eaedb47e0587b9f3d3fc84bdca5b7cc36b
MD5 7e2cf4a167a35f21e9512e81ff382e5c
BLAKE2b-256 70b7ae77e838e65718736e24d140eacaf7561000d9028cf4b7d8e47c3f9b9ee1

See more details on using hashes here.

File details

Details for the file woppy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: woppy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for woppy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4680aea88bb5be70e5693d3cb468b5589e29af0a149317fc08f9eaa8cd65a53f
MD5 a732d832b263b16c610514f012475932
BLAKE2b-256 04fff23c7c798a2f31b134a34ee1d69dce0462bbdae99a69b6b1fa879322f9b4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page