Archives August 2015

Micro benchmark with curl

Published Aug. 28, 2015 in Benchmark, Development - Last update on Aug. 29, 2015.

People who want to benchmark an HTTP server usualy use tools such as Apache Benchmark or HTTPerf. The day I had do to it, it was against object storages: AWS S3 or DropBox, so I didn't have hands on servers. My goal was to measure object storages' performances as a real customer user (Cloudscreener ...

Continue reading

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