Development Tools Python scripts - Top 4 Download

Development Tools Python script downloads

Launch a program based on file extension

This script associates or launches an action to be performed by the os based on filename extension. For example, assoc.py -e test.c will launch emacs. The optional extra_args allows you to add additional settings to the command associated with the file extension. More complicated actions may require Python functions instead of ...
Python

HTML Page Scraping

HTML Page Scraping script allows you to scrap html pages. ...
Python

CSV to XML with configuration

This script uses a python csv package, but adds configuration file, so that the document, row and field tags can be specified. ...
Python

Determine size of console window

This script is a Python implementation of few lines of C-code that get useful information about current working console on Windows. It may be useful for console application to proper formatting output. Recipe need ctypes package to be installed. When use handle of stdout for determining size of console and connect output of ...
Python

Colorize xml source

This script takes an xml file as input and output a colorized version of this file, using html or docbook (with emphasis elements and a particular role). It provides a little command line interface and it's really easy to configure your output. ...
Python

Grabbing text between HTML tags

Grabbing text between HTML tags script allows you to grab the text contained in various html tags. ...
Python

Breaking large XML documents into chunks

One of the few problems with using Python to process XML is the speed -- if the XML becomes somewhat large >(1Mb), it slows down exponentially as the size of the XML increases. One way to increase the processing speed is to break the XML down via tag name. This is ...
Python

A SAX filter for normalizing text events

SAX parser can report contiguous text using multiple characters events. This is often unexpected and can cause obscure bugs or require complicated adjustments to SAX handlers. By inserting text_normalize_filter into the SAX handler chain all downstream parsers are ensured that all text nodes in the document Infoset are reported as a ...
Python

Multiple handlers for xml sax parser

SAX is commonly used on large XML files because they don't fit nicely into core memory necessary for the friendlier DOM API. When dealing with -really- large XML files, multiple passes over the file becomes costly. The SAX handler in this script allows you to handle an XML file multiple ways in ...
Python

Yaptoo

Yaptoo is an enhanced version of yaptu, another templating utility.Features: - separated parsing from execution - added caching of parsed templates - added some error reporting - added a choice of template syntaxes - added comment syntax - added Cheetah-style variable substitution with optional caching of ...
Python

mbsa2txt

This script allows you to read the Microsoft Baseline Security Analyzer 1.2.1 XML output and sends it to standard output in a readable text format. ...
Python

Pyline a command line tool

This utility brings ad-hoc command-line piping sensibilities to the Python interpreter. ...
Python

Extract text from XML document

This script represents an alternative way of extracting text from a WF XML source. ...
Python

XML as Dictionary

This script uses two simple classes to provide the mechanism for XML conversion. ...
Python

Summarizing XHTML

This module provides a function to summarize a XHTML string - that is, shorten it so it is has no more than a given amount of words while keeping XHTML (or, hopefully, any XML) tags intact. ...
Python

Quasi

Quasi is Yet Another Python Shell, but with a twist. It supports pluggable "contexts" for non-Python commands, such as OS commands, MySQLdb queries and external programs. ...
Python

IronPython

IronPython is a new implementation of the Python programming language running on .NET. It supports an interactive console with fully dynamic compilation. It is well integrated with the rest of the .NET Framework and makes all .NET libraries easily available to Python programmers, while maintaining full compatibility with the Python language. ...
Python

Parsing an XML file with xml parsers expat

This script shows you a reusable way to use "xml.parsers.expat" to parse an XML file. When re-using the "MyXML" class, all you need to define a new class, with "MyXML" as the parent. Once you have done that, all you have to do is overwrite the inherited XML handlers and you are ready ...
Python

change cvsroot

change_cvsroot  is a simple script written in Python that can switch a working copy of a CVS module (or modules) to another CVS root. ...
Python

Using MSHTML to Parse HTML

MSHTML is the COM component used by Internet Explorer to parse HTML pages (since version 4 of IE). This script shows you how to use this component independently of IE. ...
Python