Python's Add-Ons

Well, here you don't find such special programs. Actually, those listed here are just some add-ons that you might find useful for developing you Python application, making some common tasks such as managing a tree structure much easier. You can in fact reuse the code that I make available for you to download and freely use for any purpose you wish instead of coding it on your own. I absolutely don't give any guarantee that this code is bug free or that it is faster, more reliable (in a word better) than what you could do yourself, but anyhow it is a good starting point for developing applications. Here is a list of the addons I have made so far, just click on their name to download them:

Name Version Description
General Purpose Functions 0.3 This is a collection of a few functions that can turn out to be useful in many situations. It includes:
  • A function for displaying program information (useful if you want to have the same format for all of your programs)
  • A functions for converting a string into a dictionary (provided that the string has a proper format). This is useful when working with Python's anydbm or similar module
  • A function for converting a dictionary into a string, putting one field at the beginning. This is useful if you want to sort a list of dictionaries according to one property
  • A function for getting a datetime object from a string. At the moment only date fields can be set
Tree Class 1.2 Allows you to manage trees of any sort, which are useful for a lot of different applications. The trees you create can store a value of any type for both nodes and arcs. Each node is also given a name, thus making the tree management easier. It is possible to perform depth first or breadth first search, to get the nodes listed according to the level they belong to, and to apply the minimax algorithm (particularly useful for managing artificial intellicenge, especially in games), both with and without alpha-beta pruning.
1
Hosted by www.Geocities.ws