Text Management Python scripts - Top 4 Download

Text Management Python script downloads

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

Doctester for your documentation

The doctester extracts code from stdin and tests it using the doctest module in the standard library. It can be invoked from the command line, but it is best called from you editor of choice. ...
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

Converting Word documents to text

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

Retrieving a line at random from a file

This procedure reads through a file of unknown size once, returning a random line from the file. ...
Python

Accessing Substrings

This script is useful when you want to access portions of a string. For example, you've read a fixed-width record and want to extract the fields. ...
Python

Reversing a String by Words or Characters

Reversing a String by Words or Characters script allows you to reverse the characters or words of a string. ...
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

Expanding and Compressing Tabs

This script is useful when you want to convert tabs in a string to the appropriate number of spaces, or vice versa. ...
Python

Yet Another Python Templating Utility YAPTU

"Templating" (copying an input file to output, on the fly inserting Python expressions and statements) is a frequent need, and YAPTU is a small but complete Python module for that; expressions and statements are identified by arbitrary user-chosen regular-rexpressions. ...
Python

LaTeX codec

This script is a codec for converting unicodes to LaTeX markup and vice versa. ...
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

OpenOffice to xml and or text

This script converts OpenOffice documents to XML and text. It is useful when you want to index the contents of your documents written with OpenOffice. ...
Python

Record Jar Parser

This script presents you a method to parse a file like object containing data in the record jar format. ...
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

Good enough templating

This script allows you to try a small, powerful templating language using template strings embedded in standard Python syntax. Templates are valid Python source, compiled directly to bytecode. Variable substitution is performed using 'string.Template'. ...
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

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

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