Category Archives: Python

ANN: PyWordPress – Python WordPress Library using the WordPress XML-RPC API

Announcing PyWordpress, a Python library for WordPress that provides a pythonic interface to WordPress using the WordPress XML-RPC API: Code on github: https://github.com/rgrp/pywordpress Python Package Index: http://pypi.python.org/pypi/pywordpress/ Along with a wrapper for the main functions it also provides various helper methods, for example to create many pages at once. This is somewhat of a belated […]

Also posted in Open Knowledge Foundation, Own Work, Software | 1 Response

Datapkg 0.8 Released

A new release (v0.8) of datapkg, the tool for distributing, discovering and installing data is out! Release: http://pypi.python.org/pypi/datapkg Docs: http://packages.python.org/datapkg/ There’s a quick getting started section below (also see the docs). About the release This release brings substantial improvements to the download functionality of datapkg including support for extending the download system via plugins. The […]

Also posted in Code, Command Line, Open Data, Open Knowledge Foundation, Shuttleworth Fellow, Software | Leave a comment

Introducing YourTopia – Development beyond GDP

The following is cross-posted from the Open Knowledge Foundation blog post. It reports the results of the code-sprint reported in this previous blog post. Today we’re announcing a simple new app (also submitted to World Bank Apps competition) that allows anyone to say what kind of world, what ‘YourTopia’, they would like to live in: […]

Also posted in Code, Open Data, Open Knowledge Foundation, Own Work, Shuttleworth Fellow | Leave a comment

PyWordPress – Python Library for WordPress

Announcing pywordpress, a python interface to WordPress using the WordPress XML-RPC API. Download: http://pypi.python.org/pypi/pywordpress/ Source code: https://bitbucket.org/rgrp/pywordpress/ Usage Command line Check out the commands:: wordpress.py -h You will need to create a config with the details (url, login) of the wordpress instance you want to work with:: cp config.ini.tmpl config.ini # now edit away … […]

Also posted in Code, Command Line, Own Work, Software | 1 Response

Datapkg 0.7 Released

A major new release (v0.7) of datapkg is out! Release: http://pypi.python.org/pypi/datapkg Docs: http://packages.python.org/datapkg/ There’s a quick getting started section below (also see the docs). About the release This release brings major new functionality to datapkg especially in regard to its integration with CKAN. datapkg now supports uploading as well as downloading and can now be […]

Also posted in Code, Knowledge Systems, Open Data, Open Knowledge Foundation, Shuttleworth Fellow | 1 Response

Datapkg v0.7 Beta Released

I’ve just put out a beta of a major new version of datapkg (see changelog below): Release: http://pypi.python.org/pypi/datapkg Docs: http://packages.python.org/datapkg/ There’s a quick getting started section below (also see docs). About the release This is a substantial release with a lot of new features. As this is a client app which will run on a […]

Also posted in Open Data, Open Knowledge Foundation, Own Work, Shuttleworth Fellow, Software, Work In Progress | Leave a comment

Versioning / Revisioning for Data, Databases and Domain Models: Copy-on-Write and Diffs

There are several ways to implement revisioning (versioning) of domain model and Databases and data generally): Copy on write – so one has a ‘full’ copy of the model/DB at each version. Diffs: store diffs between versions (plus, usually, a full version of the model at a given point in time e.g. store HEAD) In […]

Also posted in Code, Knowledge Systems, Open Knowledge Foundation, RDF, Software | 1 Response

Howto Install 4store

My experiences (with the assistance of Will Waites) of installing 4store On Ubuntu Jaunty. No packaged versions of code (there is one in fact from Yves Raimond from mid 2009 but now out of date …), so need to get from github. Recommend using will waites fork which adds useful features like: multiple connections triple […]

Also posted in *nix, Books, RDF, Software | Leave a comment

Using Deliverance as Middleware (with Proxying)

Deliverance is a great library that lets you easily re-theme external websites on the fly. Designed as WSGI middleware, it can be easily combined with some proxying to integrate a bunch of websites together You can use deliverance plus proxying out-of-the-box using the deliverance-proxy command. However, I was interested in using Deliverance as middleware from […]

Also posted in Code, Software | Leave a comment

SQLAlchemy Migrate with Pylons

Instructions on using sqlalchemy migrate with Pylons, especially to convert an existing pylons project to use sqlalchemy migrate This is based off several excellent sources including this guide and these threads. One important point to note is that you are likely to end up with two versions of your model tables: one in yourapp/model and […]

Also posted in Software | Leave a comment