Created: 2011-07-07 13:24
Updated: 2018-12-17 18:34
License: other

This is a python wrapper around the Metaweblog, Wordpress, and MovableType XML-RPC APIs. It is a fork of the Google Code project python-blogger.


This library provides a python interface for the various blogging API. Currently, only Metaweblog and Wordpress are implemented but it will be soon be extended to use MovableType.


To install with pip from source:

$ pip install git+git://

If the source is already checked out, use setuptools:

$ python install


import pyblog
blog = pyblog.WordPress('', 'USERNAME', 'PASSWORD')
print blog.get_recent_posts()

All return values are the standard Python based objects returned by xmlrpclib.


pyblog.MetawWeblog objects implements all metaWeblog API as documented at The method names are modified to follow python naming conventions, so getRecentPosts() becomes get_recent_posts(). For API calls requiring struct parameter you will have to pass a dictionary with the corresponding key/value pair.

pyblog.Wordpress which extends pyblog.MetaWeblog implements the extra Wordpress XML-RPC methods. Currently, this API library fulfills all the functions provided with Wordpress v2.6


Licensed under the Simplified BSD License. View the LICENSE file included with the source for complete license and copyright information.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more