Tag: python
All the articles with the tag "python".
Multistage Python Container
Updated:When building a python container, I ended up with a huge 450MB image just because I needed it to have psycopg2 . Time to chop it down using a multistage bu
Python3 One Line Web Server
Many times I find myself wanting to spin up a simple test service for a firewall rule. You can bring up a simple web server in Python3 from the command lin
Motion Sensitive Temperature Display
Updated:Following on from Python Motion Sensor I put together a 2004 LCD display, DHT11 humidity and temperature sensor and the AM312 PIR and came up with a displa
Python Motion Sensor
Updated:I wanted to add a motion sensor into a Python project that would activate a display to show the temperature only when someone was nearby. The AM312/HC-SR31
Python Build and Deploy
We wanted a way of delivering passive status updates from our dockers to the Icinga2 API. I've used bash scripts for this in the past with curl, but figure
Project Gatekeeper, Part 3
Updated:This article covers the python programming used to control the gates. At this stage I'll post some snippets and ideas on why and how I do things this way,
Load Testing with Locust
This has been a very tough few days. I was asked to build some load testing scripts for use with Locust. I was told "How hard can it be? Just a few scripts
Templating
Updated:Quite often I find myself creating files using a template that populates content using the projects .env file. Mostly I find myself using good old bash to