Working with nested forms with Django

One of the biggest advantages of Django is its ability to create CRUDs applications with no effort. You just need to define your models, register them at the admin and that’s it. If you are not going to follow the admin approach, you may ...

Monkey patching in Python

A monkey patch, as defined in wikipedia, is a way for a program to extend or modify supporting system software locally (affecting only the running instance of the program). Why is monkey patching important? Because it allows us to adjust interfaces and modify behaviors ...

Pytesseract: Get started with OCR

Optical Character Recognition (OCR) is a system that provides a full alphanumeric character recognition on an image. The system allows extracting text from an image, to convert it later into an editable file. There are some open source libraries for OCR such as Tesseract, ...

Speed it up! Recommendations to make your Django app faster

Let's admit it, Django rules. It is simple, trustworthy, fast and it is written in Python. What else do you need? However, we tend to abuse its easiness and we quickly forget that an application grows; and with it the amount of code processed ...

Beeware: Write Apps with Python!

Writing apps is not a Python strength and there are not many tools doing this. For this reason, you don’t find desktop/mobile apps written in Python very frequently. Looking something that helps us to write apps, I find two tools that have this mission ...

Getting your Toggl times with Python-toggl library

Toggl is one of the best time trackers in the market. It is simple, easy to learn and reliable. We have been using this tool on Swapps for more than three years and it has always been useful. Thanks to it, our performance has ...

We were on PyCon Colombia 2019!

When I was just starting to work as a developer, I had the opportunity to go to a software event organized by a big company on Bogotá with some other members from Swapps. It was the first time I experienced this type of event ...

How to configure virtualenvwrapper with python3 in OSX Mojave

If you are a developer working with python, you should be using VirtualEnv to manage requirements for your projects and Virtualenwrapper to make your life easier with useful shortcuts. Virtualenvwrapper has a very good documentation and python installation with Homebrew is straightforward, but It's ...

Introduction to machine learning and pytorch

First thing first, I am no expert on machine learning. But I am studying it and I am very interested in it. This blog post is product of what I have studied so far, so I apologize for the errors or imprecisions it may ...

Creating a basic artificial neural network on python using keras

With the popularity that deep learning has acquired recently, artificial neural networks have become very relevant in the world of AI. Artificial neural networks are not a new concept, they have suffered for a long time before being recognized as a powerful tool. If ...

Speed up experiments with Jupyter

Quick iterations are essential to test concepts, discard bad ideas and get focused on what  may actually solve our problem. When I first started using Python, I used scripts for everything. Scripts are awesome to automate stuff and can be easily integrated into bigger ...

How to do a Wizard Form with Django

Many times, we have a form with a lot of fields and we need to use it, but we don't want users to get bored filling the form or that they stop at middle of the form and they end up leaving the website. ...