Archives 2015

Pywikipedia is dead! Long live to PyWikibot!

Published Aug. 20, 2015 in Development - Last update on Aug. 21, 2015.

Make a Wikipedia bot is one of the first thing I made in Python. I used to make toolbox, categories and tasks for sort articles. There are a lot of client library for use MediaWiki API, more than 20, and my goal wasn't really to use MediaWiki API but more to read and write ...

Continue reading

Factory Boy of poor

Published Aug. 13, 2015 in Development - Last update on Aug. 13, 2015.

In some projects when I write unit test, I sometime need to have fixtures: a set of objects ready to use. As a Djangonaute, I used to deal with Factory Boy and django fixtures system but sometimes I can't use neither and for small usage list comprehesion or dict comprehension make the job.

For ...

Continue reading

What is a Libcloud driver ?

Published Aug. 9, 2015 in Cloud, Development - Last update on Aug. 25, 2015.

Most users uses Libcloud only for make request against a compute service. In fact the library covers several IaaS components:

  • Authentication
  • Compute service
  • Object storage and CDN
  • DNS
  • Load balancers

A driver is a Python class which after instanciation will allow you to handle one the service listed above (except authentication).

So, what's a ...

Continue reading

Contribute to apache-libcloud

Published Aug. 3, 2015 in Cloud, Development - Last update on Aug. 20, 2015.

In past I worked for CloudScreener.com as DevOps, I had in my responsabilities clouds benchmark. Computes' performances was mesured against a lot VMs categorized by the current parameters:

  • Size or flavor: Number of vCPU, RAM size and root volume size
  • Image: Chosen OS
  • Location: Datacenter or region

As many public clouds don't use ...

Continue reading

I can't Google App Enginering my blog

Published July 26, 2015 in Cloud, Deployment - Last update on July 26, 2015.

A long time ago before Google launched Google Cloud Platform, I played with App Engine and Django. Despite of the fact you must swith from Django usual tools (Celery or ORM) to Google services like Memcache or Task Queue, I was seduced by their fast deployment system.

A standard Django app is fastly adaptable to ...

Continue reading

Unittest and reusable app

Published July 19, 2015 in Development - Last update on July 18, 2015.

You had fun, you wrote a Django third app. You should have write unittests before but you didn't know where to place them. For my case when I wrote Django Admin CLI I used the work made in Django Comments, let's explain it a little.

All testing code are stored in tests/ directory ...

Continue reading

Docker at RunAbove with SailAbove

Published July 8, 2015 in Cloud, Deployment, Docker - Last update on July 12, 2015.

In the Docker tsnuami where we are, most cloud company has their own public container offer:

Those services are stiil often in Beta or Alpha and for begin a turn around of this Docker compatible offers, I started by ...

Continue reading

Jerome Debray's tools

Published July 7, 2015 in Development, Web - Last update on July 8, 2015.

One tool I use a long time ago is CSS mutli-column generator by Jerome Debray. This tools helps me to make a correct CSS for create <li> in sereral columns. Simple example:

  • Column 1 - Row 1
  • Column 1 - Row 2
  • Column 2 - Row 1
  • Column 2 - Row 2

CSS used:

-moz-column-count:2;
-webkit-column-count:2;
-o-column-count ...

Continue reading

Docker-composing my blog

Published July 5, 2015 in Docker - Last update on July 7, 2015.

As said in previous post about Docker, my blog's Docker Image is only a middleware container. It needs to be launch with a frontend, a database and optionnaly a cache. A solution for get ready to play with a full containerized architecture is docker-compose, with it I followed micro-services architecturing and only define one ...

Continue reading

Django Admin CLI

Published July 4, 2015 in Development, System administration - Last update on July 6, 2015.

I ever want to manage Django models directly from command line. In my dreams I have a curses script which have the same look and feel than Django Admin, in fact I created a CRUD application named Django Admin CLI. It is a Django third app linked to Admin's registry which allow DRY, easy ...

Continue reading