Dox a tool that run python (or others) tests in a docker container

Sometime there is some ideas that are just obvious that they are good ideas. When Monty started to mention on the OpenStack development mailing list about a tool he was hacking on allowing to integrate docker containers to do the testing it was obvious it was those ideas that everybody was thinking about that it would be awesome if it was implemented and started to get used. The idea of dox is like the name imply is to slightly behave like the tox tool but instead of running virtualenvs you are using docker containers....

September 8, 2014

On trying to be pylint compatible

How I feel when I try to address all pylint warning/errors: Adapted from http://devopsreactions.tumblr.com/post/47690154351/trying-to-code-to-w3c-standards

April 11, 2013

Emacs and nosetests

Sometime you just need a long trans atlantic flight and a stupidly long stop-over in a random city to do some of those task that can improve your day to day but you never take some time to do it. When using emacs I wanted a simple way to launch a nosetests on the current function my cursor is in Emacs. The syntax on nosetests is a bit tricky and I actually always have to look at my shell history to know the proper syntax (nosetests directory/filename....

October 14, 2012

Debugging python-novaclient on the command line.

I have done lately quite a bit of work with python-novaclient the (nova/keystone) openstack client. I often experiment it with ipython in the console. There is a nice debugging facility in novaclient which you can see while using –debug argument on the command line and if you wanted to use it with ipython you could have that at the beginning of your session : This would give you the details of the session showing you the REST requests and responses including the headers....

September 2, 2011

Installing python-cloudfiles from pypi

I have just uploaded python-cloudfiles to pypi available here This make things easy to add as a dependence of your project like you can have something like this in your setup.py : requirements = ['python-cloudfiles'] and it will automatically download it as part of the dependence with easy_install or pip. cool kids on latest debian/ubuntu can do stuff like this (from python-stdeb package) : pypi-install python-cloudfiles which would automatically download the tarball from pypi and install it as a packages (like the way it should be for prod machine!...

February 16, 2011

Python decorator to argument checking

I am sure there is billions or more people who already done that but I needed this quickly for my project and was not feeling googling around :

July 29, 2010

Get Facebook albums with python

Since I haven’t see much script like this around the web here is a quick script to suck bunch of albums from facebooks (your own) nothing fancy just something to get you started with pyfacebook. #!/usr/bin/python import os import urllib from facebook import Facebook # see http://developers.facebook.com/get_started.php # Your API key API_KEY="YOUR_API_KEY" # Application secret key SECRET_KEY="YOUR_SECRET_KEY" cnx = Facebook(API_KEY, SECRET_KEY) cnx.auth.createToken() cnx.login() cnx.auth.getSession() def choose_albums(cnx): cnt = 1 ret={} bigthing=cnx....

January 9, 2010

Twitter notification of replies by Email

I don’t check very often my twitter to know when someone replies and I find it hard to figure out what’s going on when i check a couple of days after even using a client showing only the reply (my client of choice lately is the Emacs twittering mode client) I have made a script who’s checking your direct reply and email it to you. This is to setup via a cron on a server who has a mail server configured locally....

January 7, 2010

XMPP notification for irssi running in a screen on a remote host

Like a lot of people I have my irssi on a server in a screen. This has been working great so far but my only concerns are the notifications on the desktop when something happening. Over the time I have found some different solution with mitigated results for me : Use fanotify script with the libnotify-bin and SSH like mentioned here. Setup your irssi (or other) as irc proxy bouncer and connect with...

December 20, 2009

Accessing to Rackspace Cloud Files via servicenet (update)

Last week I have posted an article explaining how to connect to Rackspace Cloud Files via Rackspace ServiceNET but I actually got it wrong as pointed by my great colleague exlt so I had to take it down until figured out how to fix it. I have add that feature properly to the PHP and Python API in version 1.5.0 to add a ‘servicenet’ argument to the connection and updated the blog post here :...

October 20, 2009