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 command-line tool to manage your blogs on wordpress

Project Description

A command line tool to manage your blogs on

Configuration file

Create configuration file ~/.config/twordpress/config with following entry:

name=Dilawar's Blog
name=Dilawar's Notes

If you choose to store this file to some other location then you should pass --config path/to/twordpressrc like option to the twordpress command.


A fork of the library is included in this version.

You can install pandoc. This application turn html to markdown format and vice-versa. I can do more but this is what we need. If pandoc is not available then it uses a python script to turn html to text.

Proxy support is added recently to python-wordpress-xmlrcp. It reads environment variable http_proxy. If you are behind proxied network, then export in your bash. And we are good to go.

3. Fetch posts

Following commands fetches post:

twordpress --blog 1 --fetch all
twordpress --blog 0 --fetch "Python is awesome"

First command will download all posts and pages from blog1. And second will download all posts which matches the given query from blog0. Third command will download most recent entries from default blog (blog0). Currently it does not download media.

Each post gets its own directory and two files and content.html are created. Edit markdown file and run the following command to update the post.

4. Updating post

Following command update the blog.

$twordpress --blog 0 --update

5. Create new post

This command post a new post:

$twordpress --blog 1 --new

The new blog is written in markdown format but a meta-data has to be prefixed. This is how your blog file should look like.:

title: This is title of my awesome post
status: publish
tags: [some awesome tag, tag2]
categories: [catA, some_category]

Here is content of blog in markdown format.

Too much has already been written. This ends my blog.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
twordpress-0.9.8.tar.gz (26.3 kB) Copy SHA256 Checksum SHA256 Source Aug 23, 2014

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