Posts with #python tag

Tips for your Makefile with Python

Recently, while I was migrating old repos from TravisCI to Github Actions, I realized that several of them had wobbly Makefiles. I know that Makefiles are not super elegant, and that intrepid...

The History of Firefox Remote Settings

When I started to write the first lines of this article, it was the last day of Ethan in our team. His departure marked the end of an era that I'll try to tell you about here. Prehistory (~2014)...

Leveraging Rust in Python and JavaScript

I had several opportunities to hack with Rust, but so far, besides this very high loaded Web service that runs in production, it was either on prototypes or on stuff that could have been...

Python good practices in early 2020

A great part of my job at Mozilla consists in maintaining the ecosystem of Firefox Remote Settings, which is already a few years old. But recently I had the chance to spin up a new Python project...

Check content hash between server and client

In order to make sure that your remote content was fetched successfully by your client, we can use a bit of cryptography. A simple way is to compute a hash on the server, and let the client...

Handling requests timeout in Python

Being optimistic is sometimes a disadvantage. When we make calls to an API, we usually test it under ideal conditions. For example, we make sure the client behaves as expected against a real HTTP...

Some Python 3 asyncio snippets

Until recently, I had never taken the chance to get my hands dirty with asyncio. But now that our production stacks run Python 3.6, there is no false excuse. I had done a lot of JavaScript before...

landez : tiles post-processing

Some weeks ago, I started to refactor landez (timidly). But smart caching and post-processing of WMS maps were expected in my last project, so it gave me a great boost : Landez 2.0 has landed ! :)...

landez : introducing new features of our tiles toolbox

landez started as a very small toolbox to build MBTiles files specifying bounding boxes and zoom levels. We have been using it for several GIS projects at Makina Corpus, and can tell it's reliable...

Une démo squelettique de python Flask CouchDB

Avec Flask et Couchdb (e.g. Flask-CouchDB), on peut faire rapidement des trucs amusants, voire très utiles ! Voici un squelette d'application, fonctionnel, qui stocke et récupère des objets crées...

More...