Programming Methods & Algorithms scripts - Top 4 Download

Programming Methods & Algorithms script downloads

locust fetchmail draft

locust_fetchmail draft script is useful to fetchmail and distribute to every user.& fetchmai ...

Memory usage

Memory usage script provides a number of functions to get the memory usage of a Python application on Linux. ...
Python

Terminating a subprocess on Windows

The new subprocess module in Python 2.4 allows access to the handle of any newly created subprocess. You can use this handle to terminate subprocesses using either ctypes or the pywin32 extensions. ...
Python

Windows free drive space report

Windows free drive space report script reads a file containing a list of share names, and prints a report of the current free space on the volumes. ...
Python

Treat the Win32 Registry like a Python dict

This class wraps most of the win32api functions for accessing a registry. It will read and write all win32 registry types, and will de/serialize python objects to registry keys when a string or integer representation is not possible. ...
Python

How to Set Environment Variables

This script writes the environment variables using a batch file wrapper. It overcomes an operating system limitation. ...
Python

Controlling Windows Services

This script is a module for manipulating WinNT, Win2k & WinXP services. It contains the WService Class. The WService Class is used for controlling WinNT, Win2k & WinXP like services. Just pass the name of the service you wish to control to the class instance and go from there. For example, ...
Python

Win32 service administration

This script provides some packaging for the win32serviceutil module to simplify starting and stopping services. It also provides a small test example that includes providing arguments for starting a service. ...
Python

Lock NT via screensaver

Lock NT via screensaver code implements a Python solution for locking a workstation via a secure screensaver. ...
Python

CookieInfo

The "CookieInfo" and "Cookie" classes provide developers with an read-only interface to the "cookies.txt" that most browsers store. The CookieInfo class makes Cookie objects from the cookie file. It also provides methods to operate on the whole set of Cookies. The Cookie object provides methods to convert a cookie into both ...
Python

A friendly mkdir

This scripts provides a function mkdir() more friendly than Python's standard os.mkdir(). Limitations: it doesn't take the optional 'mode' argument yet. ...
Python

pykill

This is a python script very loosely approximating pkill that is a Linux command: will send the specified signal (by default SIGTERM) to each process instead of listing them on stdout. ...
Python

Easily call executables from Python

One common aspect of programming is calling executables and processing results. It is not as easy or elegant to do this in Python as it is in a shell scripting language, such as bash. This script implements a shell-like module in Python which allows you to easily call executables and work ...
Python

Parse Command Line String from CommandLine

This script represents a way to parse command line from user provided string or try to get the original Argv from Windows OS Platform. ...
Python

Parsing the command line

The module optparse was a great addition to Python 2.3, since it is much more powerful and easier to use than getopt. Using optparse, writing command-line tools is a breeze. However, the power of optparse comes together with a certain verbosity. This script allows to use optparse with a minimum of boilerplate, ...
Python

Watching a directory tree under Linux

This script contains a class named DirectoryNotifier that encapsulates the code required for watching directory entry contents. ...
Python

Changing file attributes on windows

The win32api module offers SetFileAttributes whiles allows you to make changes to a file in windows. You can set a file to be read only, archive, hidden, etc. This script is simple and convenient to use. ...
Python

Converting windows 64 bit time

In Win32 often you'll find time stored in 100-nanosecond intervals since January 1, 1600 UTC. It is stored in a 64-bit value which uses 2 32 bit parts to store the time. The following script is a function that returns the time in the typical format the python time libraries use (seconds ...
Python

Create an account in MS active directory

This script contains the basic code to create an account in active directory that shows how to do things like set your own exension attributes, force a reset of the password when the user logs in, and set the home directory. It makes used of python's excellent COM support in win32com. ...
Python

Creating a share on windows

This script is an example of how one would use python's win32net module to create a share on windows. ...
Python