I wrote a blog client a couple years ago and have been developing it on and off ever since. One of the reasons I hadn’t done anything public with it is I needed to take the time to organize it appropriately for something like pypi.
I’ve finally taken those steps and have put it out into the wild. The source code is on github, here. I’ve also used python’s setuptools
to publish it on pypi, here.
It works with my self-hosted WordPress blog and I’ve used it almost for all but a handful of the blog posts I’ve written on the blog, so I consider it reasonably well tested for those purposes. It won’t support all of WordPress features, but I plan on changing that as I migrate some of the functionality over to using more of the WordPress API. When I originally wrote blogtool
, WordPress didn’t have its own API for posting, so that’s why that shortcoming exists.
There are a couple of nice features to blogtool
that I thought I’d mention here. One, it uses python-markdown to mark-up post text. It’s proven very capable for my style of blogging, which is 90% text. It handles pictures as well, and I’ve added a little wrinkle for that purpose. Rather than supply a URL or some such for markdown's
syntax, simply supply a file path to the picture. Then, blogtool
will take care of the rest.
The other nice feature is that posts can be retrieved and edited from a blog. When retrieving, it will reformat the HTML into markdown
style format. This is useful for editing comments as well as posts.
So, there it is. My first published code project.