AOE Technology RadarAOE Technology Radar

Python for Infrastructure Glue Code

This item was not updated in last three versions of the Radar. Should it have appeared in one of the more recent editions, there is a good chance it remains pertinent. However, if the item dates back further, its relevance may have diminished and our current evaluation could vary. Regrettably, our capacity to consistently revisit items from past Radar editions is limited.

Python is an easy to learn programming language that is pre-installed on most Linux distributions and CI runners. This makes it an ideal candidate for infrastructure glue code and adapters.

Shell scripts serve the same purpose. But they usually start simple and get more complex over time. This is the point where Python's features like testing capabilities, modularity, variable scoping and refactoring support comes in strong. We found that Python scripts are easier maintained in the long run and pose a lower barrier for contributions by our development teams. And they run across platforms and shells without much trouble which is a big plus for developers running different operating systems.

The Python language has a wide eco-system and a vast module library that can simplify scripting significantly. We currently value requests for HTTP API calls and Click for simple interactive CLI scripts, along with pytest for automated testing.