Overview When you’re working with Python, you don’t need to import a library in order to read and write to a file. It’s handled natively in the … [Read more...] about Reading and Writing Files in Python
System & OS
Subprocess and Shell Commands in Python
Subprocess Overview For a long time I have been using os.system() when dealing with system administration tasks in Python. The main reason for that, … [Read more...] about Subprocess and Shell Commands in Python
Python System Administration
Overview The OS module in Python provides a way of using operating system dependent functionality. The functions that the OS module provides allows … [Read more...] about Python System Administration
With statement in Python
Overview In Python you need to give access to a file by opening it. You can do it by using the open() function. Open returns a file object, which has … [Read more...] about With statement in Python
How to use Fabric in a development environment
Overview I earlier wrote a post on "How to use Fabric in Python", which can be found here. I received a lot of responses from that article, so I … [Read more...] about How to use Fabric in a development environment
How to use Fabric in Python
What is Fabric? Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration … [Read more...] about How to use Fabric in Python
Regular Expressions in Python
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 … [Read more...] about Regular Expressions in Python
Python’s OS Module
Overview The OS module in Python provides a way of using operating system dependent functionality. The functions that the OS module provides allows … [Read more...] about Python’s OS Module
How to use the Pexpect Module
This article is based on documentation from http://www.noah.org/wiki/pexpect and http://pypi.python.org/pypi/pexpect/ The reason I started to use … [Read more...] about How to use the Pexpect Module
Using the CSV module in Python
If you want to import or export spreadsheets and databases for use in the Python interpreter, you must rely on the CSV module, or Comma Separated … [Read more...] about Using the CSV module in Python