Ludochaordic
Fantaisies programatico-ludiques

Using python requests-futures to crawl all jobs on a Jenkins 4 times faster

At work, we needed to retrieve the full list of jobs a given Jenkins instance was hosting. Our first solution was to use the jenkinsapi Python package: import xml.etree.ElementTree as XmlElementTree from jenkinsapi.jenkins import Jenkins def get_all_jenkins_jobs(server_url): jenkins = Jenkins(server_url, lazy=True, timeout=30, username=os …

Read More

Battledev de RegionJobs : Python vs Java

En mars dernier, j'ai participé à la Battledev de RegionJobs. Et c'était super fun. Pour ceux qui ne connaissent pas, c'est une compétition de programmation en ligne, où l'on doit résoudre 5 questions de difficulté croissante en 2 heures. J'ai eu l'occasion d'y participer avec quelques collègues, et ça a …

Read More

Quick stats on a stream of values in the console

I often find myself grep-ing for information in system or application log files. And often, by combining pipes, I end up generating a flow of values that is sometimes difficult to interpret. In this post I'll show you a quick-and-dirty but handy solution to get basic statistical quantities from …

Read More