Text Management Python scripts - Top 4 Download

Text Management Python script downloads

Read a text file backwards

This script presents another way to read a file line by line, starting at the end. ...
Python

String Interpolation Evaluation of Expressions

This script represents a lightweight and powerful way to evaluate expressions embedded in strings during interpolation. ...
Python

Convert a string into a raw string

This script contains a function that takes in an arbitrary string and converts it into its raw string equivalent. It is very useful when a user needs to input text and you want the raw equivalent to be used and not the processed version. ...
Python

Deeply applying str across a data structure

The str() function in the standard library behaves in a slightly weird way when applied against lists: on each element of the list, the repr() is appended. In contrast, this module provides a deep_str() that deeply applies str() across lists. This module also provides utilities to develop custom str() functions. ...
Python

Conversion to unicode or byte string

Python's built in function str() and unicode() return a string representation of the object in byte string and unicode string respectively. This script introduces an enhanced version of str() and unicode() that could be used as handy functions to convert between byte string and unicode. This is especially useful in debugging when mixup of ...
Python

AWK like text processing

AWK is a text processing language that makes it easy to "search files for lines [...] that contain certain patterns. When a line matches one of the patterns, awk performs specified actions on that line." (GNU Awk User's Guide). This script provides a way to do the same thing in python. ...
Python

Convert DB Fixed Width Output to CSV Format

This program takes an input of a fixed width database output file with a header names, dashes, and data and converts it into CSV data. The code assumes that the dashes represent the fixed-column widths. For simplicity, all quotes are removed from data and all columns are wrapped with quotes. ...
Python

Convert string to hex

Convert string to hex script converts each char to hex representation and back. ...
Python

Indices of a SubString in a Given String

This script uses string.index(sub) function which returns a list of indices of ALL occurances of a substring in the string. ...
Python

A simple Tkinter notebook like widget

This simple notebook class allows you to organize single-toplevel Tkinter apps in a notebook-like fashion, associating each tab to an app, in a way which requires minimal changes in your original apps. This class also supporting different tab orientations (TOP, BOTTOM, LEFT & RIGHT). ...
Python

TeXML

TeXML is an XML syntax for TeX (LaTeX, ConTeXt).The processor transforms the TeXML markup into the TeX markup, escaping special and out-of-encoding characters. The intended audience is developers who automatically generate [La]TeX or ConTeXt files. Features: - LaTeX and ConTeXt support. - No need to bother escaping TeX special characters. ...
Python

Converting Word documents to text

Converting Word documents to text script allows you to convert word documents to text files. ...
Python

Format a text block

This function formats a block of text. The text is broken into tokens. (Whitespace is NOT preserved.) The tokens are reassembled at the specified level of indentation and line width. A string is returned. ...
Python

HTML to text converter

This is a complete program that reads a html document and converts it to plain ASCII text. In the spirit of minimalism, this operates as a standard unix filter: htmltotext < foo.html > foo.txt . If the output is going to a terminal, then bold and underline are displayed on the ...
Python

Text transformer with conditions

This script uses an efficient way to tranform a file's text to something else, with conditions for few lines. ...
Python

Chomsky random text generator

This script creates believable Chomsky style obfuscated prose. ...
Python

Finding and Replacing Nemo

On each keystroke, all matches of the given text are highlighted, and the corresponding replacements are performed. Parts of the regular expression can be selected to make their scope appear in the original text. ...
Python

Change line endings

When working between platforms, it is often necessary to convert the line endings on files for them to work, especially when it comes to code. Pass Unix Python code with and it goes nowhere. Same on Mac Python with . This code simply and easily fixes the problem. ...
Python

Custom String Representations of Bases

Custom String Representations of Bases script allows you to make a number shorter(like timestamps in URLs). ...
Python

Read a text file by paragraph

Text files are most often read by-line, with excellent direct Python support. Sometimes you need to use other units, such as the paragraph -- a sequence of non-empty lines separated by empty lines. Python doesn't support that directly, but, this script adds such functionality. ...
Python