Tag archives: python

RSS feed of python

I tested all SaaS CI tools

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

I really hate Jenkins for several non-objective reasons and it's not a classic hatred, more a life struggle where all episode begin by my signature on an employment contract. Most societies made the effort to open a private Gitlab but ask them to forget Jenkins and move into CI tools into SaaS is clearly unbelievable.

It is ...

Continue reading

My tox environment

Published Nov. 7, 2015 in Tests and quality - Last update on Nov. 18, 2015.

I have long refused to use tox in my Python projects, I though to test code against multiple version Python was a task which should be made by CI tools. After contribute to several projects, I learned to appreciate it when I want to test code with different aspects. I was wrong and for me ...

Continue reading

Django is 10 years

Published Oct. 27, 2015 in Development, Web - Last update on Oct. 27, 2015.

The framework is a bit old and has already crossed a little piece of the IT's history. Let's follow the resume of Django's life, its well known third applications, links with Python and related events:

Maybe I should test tests ?

Published Oct. 19, 2015 in Development - Last update on Oct. 19, 2015.

Every one has already test a big sized app realizes he must write his own test framework for make clear tests with easy reading and usage. For example, Django has its own test framework, inherited from unittest, for ease tests for models, views, mails and more. Even with Django I sometimes need to create modules ...

Continue reading

Use boto, ensure with moto

Published Sept. 24, 2015 in Cloud, Development - Last update on Sept. 23, 2015.

I work since short time at Outscale, it is a cloud provider using a Amazon like API. Like HP Eucalyptus, Outscale made the choice to copy/paste AWS's API and takes benefits of the most used cloud API with:

  • A well known API with many third part tools
  • A simple transition between them and AWS ...

Continue reading

Backup with Django

Published Sept. 11, 2015 in Development - Last update on Oct. 16, 2015.

Like all serious data this blog needs to be save in case of disaster and as a cloud native app it should be able to be ran in every platform and to be operational after a backup restored. A Django backup is generaly a database dump coupled with a media files copy.

Instead of use ...

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

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