System & OS

Overview This post will show how you can make a small and easy-to-use port scanner program written in Python. There are many ways of doing this with Python, and I'm going to do it using the built-in module Socket. Sockets The socket module in Python provides access to the BSD ...

Overview OS.walk() generate the file names in a directory tree by walking the tree either top-down or bottom-up. For each directory in the tree rooted at directory top (including top itself), it yields a 3-tuple (dirpath, dirnames, filenames). Paths root : Prints out directories only from what you specified dirs ...

What is Fabric? Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. Typical usage involves creating a Python module containing one or more functions, then executing them via the fab command-line tool. You can execute shell commands over ...

Overview The goal of this article is to write a short introduction to IPython. While IPython has two main components (an interactive Python Shell and an architecture for interactive parallel computing), this post will be about the Python shell. I will leave the parallel computing part for another time. In ...

What is a Regular Expression? It's a string pattern written in a compact syntax, that allows us to quickly check whether a given string matches or contains a given pattern. The power of regular expressions is that they can specify patterns, not just fixed characters. Many examples in this articles ...