From db5600b4e1864e529ef6cfd5028a6382f64d48dc Mon Sep 17 00:00:00 2001 From: Christian Zenker Date: Tue, 20 Apr 2021 11:35:03 +0200 Subject: [PATCH 1/2] Add Python for Infrastructure Glue Code --- radar/2021-01-01/python-for-infrastructure.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 radar/2021-01-01/python-for-infrastructure.md diff --git a/radar/2021-01-01/python-for-infrastructure.md b/radar/2021-01-01/python-for-infrastructure.md new file mode 100644 index 0000000..a751f32 --- /dev/null +++ b/radar/2021-01-01/python-for-infrastructure.md @@ -0,0 +1,20 @@ +--- +title: "Python for Infrastructure Glue Code" +ring: assess +quadrant: platforms-and-aoe-services +--- + +[Python](https://www.python.org) 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 come 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](https://pypi.org/project/requests/) for HTTP API calls +and [Click](https://click.palletsprojects.com/en/7.x/) for simple interactive CLI scripts, along with +[pytest](https://docs.pytest.org/) for automated testing. From 5fc0702fadb7b52bddf2a00060fced35a0a344e9 Mon Sep 17 00:00:00 2001 From: Kevin Schu Date: Fri, 30 Apr 2021 11:45:47 +0200 Subject: [PATCH 2/2] Update python-for-infrastructure.md --- radar/2021-01-01/python-for-infrastructure.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radar/2021-01-01/python-for-infrastructure.md b/radar/2021-01-01/python-for-infrastructure.md index a751f32..1323899 100644 --- a/radar/2021-01-01/python-for-infrastructure.md +++ b/radar/2021-01-01/python-for-infrastructure.md @@ -10,7 +10,7 @@ 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 come in strong. We found that Python scripts are easier maintained in the long run and pose +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.