Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A Python client for the WordPress JSON API plugin

Project Description

A simple Python library for talking to Wordpress in JSON. This library relies on the [WordPress JSON API plugin][1]. This won’t work if your WordPress site doesn’t have the plugin installed.

[1]: “WordPress JSON API”


$ pip install python-wordpress

Or git clone and python install and such.


>>> from wordpress import WordPress
>>> wp = WordPress('')
>>> posts = wp.get_recent_posts()

For now, this only covers the read portions of the API under the core controller. See the [WordPress JSON API documentation][2] for details.


Tests assume a WordPress blog running on [MAMP][3] at http://localhost:8888/wordpress, but you can change that by setting WORDPRESS_BLOG_URL as an environment variable, like so:


[3]: “MAMP!”

Release History

This version
History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(3.7 kB) Copy SHA256 Hash SHA256
Source Jul 31, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting