Calling pip programmatically

I was trying to find an API for pip but I wasn’t able to find a one. So started to look at the code and I realised that I could just emulate what the pip command was doing. It turned out to be really easy.

Dart docset for Dash

I have been using Dash as a documentation browser. Its really handy when I am offline. I’ve created a docset for dart and put it put on github here.

Installing python-glpk on OS X 10.8

I have been using PuLP for linear optimisation. By default, on OS X, the library used the packaged COIN command line program. This tends to be slow if you are many optimisations as I was doing. Luckily PuLP can handle other optimisers as well like GLPK or paid ones like CPLEX or GUROBI.

Python and Neo4j performance

I have been playing aroung with Neo4j v1.6 in the embedded mode with Python. The Neo4j library for python uses JPype. I was quite unhappy with the the raw speed. So I decided to decided to test the following code in Python, or more specifically CPython.