Skip to content
Wordpresslib is a wrapper to post to a Wordpress blog in Python. Started by Michele Ferretti. This version adds support for tags (keywords).
Find file
Latest commit 3a8c6cd @charlax Merge pull request #2 from unhammer/master
wops, should be guessing on path, not file :)
Failed to load latest commit information.
.gitignore Ignoring .pyc files
LICENSE first commit
TODO Create TODO file Update example
python.jpg added image to test Updated author name and version number Updated author name and version number wops, send file path, not file


WordPress Python Library

A simple python library for WordPress (XML-RPC interface).

The following methods are supported:

  • Publishing new post (title, body, tags, categories, custom fields…)
  • Editing old post
  • Publishing draft post
  • Deleting post
  • Changing post categories
  • Getting blog and user informations
  • Upload multimedia files like movies or photos
  • Getting last recents post
  • Getting last post
  • Getting Trackbacks of post
  • Getting Pingbacks of post


import wordpresslib

url = ""

wp = wordpresslib.WordPressClient(url, 'username', 'password')


post = wordpresslib.WordPressPost()

post.title = 'Title'
post.description = 'Content'
post.tags = ["wordpress", "lib", "python"]

# Set to False to save as a draft
idPost = wp.newPost(post, True)


Very happy to have contributions to this project. Please write tests for any new features and always ensure the current tests pass.

License: GNU/GPL


This project has been started by Michele Ferretti in 2005.

Original project was here:

Something went wrong with that request. Please try again.