Skip to main content

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]: http://wordpress.org/extend/plugins/json-api/ “WordPress JSON API”

Install:

$ pip install python-wordpress

Or git clone and python setup.py install and such.

Usage:

>>> from wordpress import WordPress
>>> wp = WordPress('http://example.com/blog/')
>>> 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.

[2]: http://wordpress.org/extend/plugins/json-api/other_notes/

Tests are written with the assumption of a WordPress blog running on [MAMP][3] at http://127.0.0.1/wordpress/.

[3]: http://www.mamp.info/en/index.html “MAMP!”

Project details


Download files

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

Files for python-wordpress, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size python-wordpress-0.1.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View
Filename, size python-wordpress-0.1.1.zip (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page