Python  
     
  To quote from the FAQ on the www.python.org website:  
     
  "Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C++. It is also usable as an extension language for applications that need a programmable interface. Finally, Python is portable: it runs on many brands of UNIX, on the Mac, and on PCs under MS-DOS, Windows, Windows NT, and OS/2."  
     
  I'm teaching myself OOP programming using Python. I'll put links to any scripts I write that I think are useful here:  
     
 

Scripts:
ovine.py - A Python module for (e-mail) users of the www.distributed.net client "Bovine".

 
     
 

squidge.py - A utility which takes files with a specified extension in a directory and stuffs them all into a single file, separated with XML type wrapping. Squidge also has an unsquidge function. You can probably guess what this does.

 
     
  LL2XML.py - A module for converting a list of equal length lists (from a parsed csv, for example) into XML. The output can be an HTML table, if you prefer.  
     
 

Looking for csv2XML? I'm deprecating this module, as it does not handle all CSV's properly. It works OK for CSVs with no escaped characters, but you want to use a proper CSV parser module and then LL2XML if you have escapes (quotes, double quotes or commas) in input file.

 
     
 

Igor.py - (Temporarily removed - contact me if you want more information) very early alpha - for reference or interest only
A web checker - you give this a set of URLs and a set of e-mail addresses and it will visit the sites and mail the administrator if the site is unavailable, or the page returned contains a specific error message. It also mails when a site that was down comes back-up. (It saves the last known state of the site in a log file, which you can use to monitor up-time).

The results come up in the console, but the script is designed as to send alerts via e-mail, so you'll need to edit the smtp server and e-mail details. It is designed to be run at intervals to check server availability. (Use something like the Schedules Tasks application in Windows to do this).

Documentation is coming soon. Let me know if you find Igor useful.

 
     
  swapextensions.py - a tiny script that walks a directory tree and swaps file extensions.  
     
  Perfectionism is the thief of.....no, perfectionism is the killer of.......no, perfectionism is the last.....no, no......  
     
  Some thoughts about a Process Description Markup Language - makes language wars a thing of the past!  
     
 

Pythonic Links

Sites
Python.org
Zope.com
Zope Newbies
ZopeZen
ZopeMag
Python Cookbook
Vaults of Parnassus

Sites
O'Reilly Python Developer Center
Revisiting XML tools for Python
The latest 200 Pythonic links

How to think like a computer scientist

 
     
     
 
<HOME>