Python 101 Python is – as I have said before – a simple language to pick up. It is meant to be readable by the layperson and the logic of its code is meant to be easily understandable. It is because of this fact that everything from installing Python to configuring it in your OS […]
Category: Exploring automation
Flat-nested/sparse-dense – Talking about Python
Flat-nested/sparse-dense The part about flat being better than nested, in particular, is a reason for those famous one-line Python codes that you see. Simple code shouldn’t have to span across 20-30 lines when it can be done in a few. In a lot of languages, it cannot be done in a few lines, but in […]
Containerization – Talking about Python
Containerization Containers are made using the Docker library. The creation, destruction, and modification of containers can be automated and orchestrated using Python. It provides a way to programmatically maintain and modify container states. Some applications include the following: You may be wondering what the point of containers is, and that may be because you’ve never […]
Autopull a list of Docker images – Talking about Python
Autopull a list of Docker images Grabbing Docker images can be tedious. Especially grabbing multiple images. So now, we are going to see how we can pull a number of Docker images at the same time using the Python library for Docker: pip install docker 2. Then, write a script in a file called docker_pull.py […]