You're here: Snippet Directory » Python (121)
Language:

Snippet Directory - Python 

Snippets

A XML file hash generator

This Snippet generates a sha hash for a given XML file...The Order of a single element is NOT important for this tool, the content is.eg.:<a> <b/> <c/></a>will produce the same hash as <a> <c/> ...

Language: English | Programming Language: Python | Author: samon007 [not registered]

ask for confirmation in console

This function will ask for confirmation in console, accepting yY or Nn or Enter for optional default; if no good answer is given, it'll keep asking.Usage:if yes("Do you want to do this?", 'y'): do_this()if no("Do you want ...

Language: English | Programming Language: Python | Author: rainy [not registered]

Basic email to HTML converter

Pipe an e-mail message in, get HTML out. Useful for saving interesting messages as a simple web page.

Language: English | Programming Language: Python | Author: purcell [not registered]

Basic email to HTML converter

Pipe an e-mail message in, get HTML out. Useful for saving interesting messages as a simple web page.

Language: English | Programming Language: Python | Author: purcell [not registered]

Basic MSWord to XML converter

a python COM object which does a basic export from MSWord to XML... (this will be extended in the future to handle lists, embedded images and possibly other stuff)

Language: English | Programming Language: Python | Author: slimy [not registered]

bbmenu

generates a Blackbox menu for directories containing themes

Language: English | Programming Language: Python | Author: fusiongyro [not registered]

bbstyle.py

A simple script that crawls through your Blackbox styles directory and updates your styles menu, so you don't have to hand hack it every time you download a new style.

Language: English | Programming Language: Python | Author: jawbone [not registered]

clargs.py

Lists and sorts command line arguments, as well as searches for and identifies a pre-determined 'match' variable.

Language: English | Programming Language: Python | Author: inkedmn [not registered]

colorize

colorize text using unix terminal codesUsage: print col("test", "red", "blue") # print test in red on blue background# background is optionalenable_color = 0 # to disable color (return unmodified text

Language: English | Programming Language: Python | Author: rainy [not registered]

cookiemonster

Eats all (netscape) cookies except those you tell it not to eat. Useful if you want cookies enabled, but don't want people gathering too much information about you.

Language: English | Programming Language: Python | Author: jmcvetta [not registered]
RSS