My blog : 'Cause I need somewhere to write my thoughts

Never use python setup.py upload

Published Aug. 23, 2015 in Deployment, Development - Last update on Aug. 23, 2015.

In Python packaged projects where I work, I used to add a make register command for create a new version of my package. This launch a script I wrote which make the following things:

  1. Get the version number written in package
  2. Create a git tag
  3. Push the tag to the upstream
  4. Create a package
  5. Upload ...

Continue reading

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

Yearly archives