In this tutorial we shall show you how easy it is to make simple real-time backup software by using the Python module called Pyinotify. This module is based on the Linux kernel feature named inotify (included since kernel 2.6.13); and this being an event-driven notifier, it’ll convey its notifications from kernel space to user space by means of using system-calls. The Pyinotify module will eventually bind such calls.
Read moreArchive for the ‘Python’ Category
Is your code fast? Find out with timeit!
Posted by admin in Python -I bet many of you have wondered, at least once, how much time your method or class is going to take when executed. Well, thanks to the python timeit module we can really time our own code.
Quite often when tweaking with the code, it would be quite a good practice to test such tweaks by means of timing them; in this way we could be able to see which tweaked version of the code takes the more time. In this tutorial we’re going into the timeit module which has been added since python 2.3.
Send email with attachments using Python
Posted by admin in Python -Today we will look at a method of using the SMTP protocol via Python. Our goal is to create a class through which we can send emails with attachments.
Read moreHow to use Python Imaging Library
Posted by admin in Python -The Python Imaging Libray (PIL) is a library that allows Python Programmers to open, save, and manipulate images. PIL mostly deals with image formats TIFF, JPG, BMP, PNG, and GIF, but there are even ways for a common user to add their own formats to the Library. The Python Imaging Library greatly speeds up programming time if the Python program deals with images at all.
Read more