Blog

Ideas and insights from our team

Posts order by Python category

Advanced Django querying: sorting events by date
Filipe Ximenes

Imagine the situation where our application has events (scheduled tasks, appointments, python conferences across the world) happening in different moments of time. Almost anything with a date attached to it. We want to display them in a simple list to the user. Given we are in February 2017 (the ...

Feb. 21, 2017
read more
How I test my DRF serializers
Filipe Ximenes

How I test my DRF serializers In this blog post, I will show the whats and whys on testing Django REST Framework serializers. First, some context. Here is the model setup we are going to use for this example: from django.db import models class Bike(models.Model): COLOR_OPTIONS = (('yello...

Jan. 11, 2017
read more
Metaprogramming and Django - Using Decorators
Victor Carriço

While programming is about, in some way, doing code to transform data, metaprogramming can be seen as the task of doing code to change code. This category is often used to help programmers to enhance the readability and maintainability of the code, help with separation of concerns and respect one...

Nov. 17, 2016
read more
Vinta's Review of PythonBrasil[12]
Rob Novelino

PythonBrasil[12] happened in Florianópolis - SC and lasted for 6 days. We saw some amazing Keynotes from some awesome speakers, such as @SagnewShreds, @hannelita, @NaomiCeder, @freakboy3742, @seocam we got to have a lot of community time getting to know new people from all around Brazil and stil...

Nov. 4, 2016
read more
Python API clients with Tapioca
Filipe Ximenes

In this post I'll present to you Tapioca, a Python library to create powerful API clients with very few lines of code. If you don't want to read through the reasons why I've built it, you may just jump straight to the Tapioca Wrapper section. Why do we need a better way to build API clients Integ...

Oct. 25, 2016
read more
[pt-BR] PythonBrasil[12] Talks
Felipe Farias

Slides from talks given during the PythonBrasil[12] event will be posted here. This post and the slides are in written in Brazilian Portuguese. O que é esse tal de REST? Palestrante: @xima Link dos slides: O que é esse tal de REST? REST é a bola vez quando falamos sobre API. As maioria dos se...

Oct. 15, 2016
read more
Database concurrency in Django the right way
Guilherme Caminha

When developing applications that have specific needs for running asynchronous tasks outside the web application, it is common to adopt a task queue such as Celery. This allows, for example, for the server to handle a request, start an asynchronous task responsible of doing some heavyweight proce...

Sept. 29, 2016
read more
Functional programming in Python the simplest way
Anderson Resende

One of the best ways to learn something is by comparing it to things we already know. This blog post has two main goals. The first one is to introduce the basic concepts of functional programming, and for that we will compare with the main rival paradigm, the imperative programming. The second is...

Dec. 22, 2015
read more