Python Decouple 2.2: Strict separation of settings from code

Decouple helps you to organize your settings so that you can change parameters without having to redeploy your app.

It also makes easy for you to:

  1. store parameters on ini or .env files;
  2. define comprehensive default values;
  3. properly convert values to the correct data type;
  4. have only one configuration module to rule all your instances.

It was originally designed for Django, but became an independent generic tool for separating settings from code.

Continue Reading…

PyCon, Python and Open Source community on FLOSS Weekly

Update: Check out the episode 108.

This next wednesday, Feb 10th at 1:30pm PST (7:30pm in Rio de Janeiro) – I’ll have the pleasure to join Randal Schwartz and Leo Laporte on the FLOSS Weekly show.

This show will be about Python and Open Source community, and I’ll talk about the upcoming PyCon in Atlanta.

Join us at Live TWiT TV.


Atualização: Ouça o episódio 108.

Nesta próxima quarta-feira, dia 10 de fevereiro às 19:30, horário de Brasília – 13:30 horário do Pacífico – eu terei o prazer de participar da gravação do FLOSS Weekly com Randal Schwartz e Leo Laporte.

Neste show falaremos sobre comunidades Python e Open Source, e eu vou falar sobre a PyCon em Atlanta que acontecerá na próxima semana.

Participe conosco em Live TWiT TV.

Até lá!

Adding SVG support to Sphinx’s Graphviz extension

Sphinx has a few built-in extensions to take your documentation one step further. Among all, I’ve been finding the Graphviz extension very useful. It enables the use of DOT language to describe a graph that will be converted into a PNG image by Graphviz.

For some reason, the Graphviz version installed on my Mac is generating corrupted PNG files. Fortunately, it supports many other formats including SVG which has the greatest results. Continue Reading…

Pragmatic Virtualenvwrapper with a subshell sandbox

Virtualenvwrapper makes working with Virtualenv a real pleasure. But for me it wasn’t enough, just because I’m that lazy.

My idea was to type one command and get right into the repository directory. I’d like it to happen within a subshell so I would not need to deactivate the virtual environment. All I would need to do is press CTRL+D to exit the subshell and close my sandbox. Continue Reading…

The make it work, make it right, make it fast misconception

On the agile way of doing software development, one of developer’s favorite mantras is: Make it Work, Make it Right, Make it Fast.

However, it’s not uncommon to see people complaining that by following this directions, their project never get to the make it fast stage. That happens because of a misconception where people treats these three steps as isolated actions of a project. And they are three stages of one development task.

Continue Reading…

Bibliography gives you credibility

After I released my post “Google Wave is not about text, it’s about data”, my friend Rafael Lima twitted praising it (in portuguese): Gosto de post que clico em vários links para ler mais como este”. Which means “I like posts with lots of links to read more about, like this”.

It’s very important to have the habit of spend some time finding the right links to reference in a blog post. Links are extremely powerful! It can turn a post into a knowledge hub.

Adding much relevant links as possible to your posts, not only add value to your text but gives credibility to it. It works just like bibliography in books.