Store Django static assets with Amazon S3

For some projects we serve a lot of images, videos, and documents. This can overload your site and make it slower because it is requesting too many resources and processes at the same time. Due to this situation, it is a good practice to ...

Quick start with Django ORM

As a web developer, using databases may be a pain, you must ensure that all your queries are pretty well structure, and they have to work as expected, so  when you choose and ORM you are in a good way to achieve it, you ...

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, ...

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 ...

Static Code Analysis For Python

Today, we write  a lot of code and many people is working in the same project that you are, that makes difficult to ensure the quality of the code. That is when static code analysis, also called linting  appears, finding failures and security vulnerabilities. ...

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 ...