Text Management
Indent text like email clients script helps you to manage the text identation.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Identation, Processing, Text, Text Identation, Text Processing, Text Tool
License: Freeware | Download (59): Indent text like email clients Download |
This script overrides the Python built in function TextWrapper.wrap with an implementation that handles spiltting a document into paragraphs and processing each individually. This allows things such as initial_indent to work as expected.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Paragraph, Paragraph Processing, Text, Text Management, Text Wrapper, Wrapper
License: Freeware | Download (58): TextWrapper Download |
Custom String Representations of Bases script allows you to make a number shorter(like timestamps in URLs).
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Base, Number To String Converter, Representation, Representations Of Bases, Shorting Numbers, String
License: Freeware | Download (62): Custom String Representations of Bases Download |
This script does two actions: emits a log line only if the log message was different compared to previous message and generates a log line at least every n seconds so that user knows the system is working and has not hanged.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Generator, Log Lines, Log Lines Generator, Logging, Logging Messages, Messages
License: Freeware | Download (58): Logging only new messages Download |
In console-less environments, printing raises an exception. Disabling all print statements can be a pain. This script allows you to leave all print statements in place.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Error, Print, Print Error, Strings Management, Text, Text Printing
License: Freeware | Download (62): No print error in console-less environments Download |
When comparing text generated on different platforms, the newlines are different. This script normalizes any string to use unix-style newlines. This script is used in the TestOOB unit testing framework
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Newlines, Normalizing, Normalizing Newlines, Strings, Strings Management, Unit Testing Framework
License: Freeware | Download (62): Normalizing newlines between windows/unix/macs Download |
If you are processing unicode strings and you want to print the string but run into UnicodeEncodeError all the time, this script shows you some simple steps to visualize unicode strings.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Strings, Unicode, Unicode Strings, Visualize, Visualize Strings, Visualize Unicode
License: Freeware | Download (63): Visualize unicode strings Download |
Printing sequences or maps containing non-ASCII strings results in escape sequences. This function uses the not-so-commonly-known "string_escape" codec to facilitate printing such sequences for quick-viewing.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Non-ascii, Non-ascii Strings, Print, Print Maps, Printing Sequences, Strings
License: Freeware | Download (59): repr() of containers with non-ASCII strings Download |
This script creates believable Chomsky style obfuscated prose.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Chomsky Style, Generator, Obfuscated Prose, Random, Random Text Generator, Text
License: Freeware | Download (60): Chomsky random text generator Download |
This script echos the input with a time delay after each line. The input can be from standard input or a list of files on the command line, like the Unix 'cat' command. The delay between lines is adjustable, and defaults to 1 second.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Echo, Echo Input, Input, Standard, Standard Input, Text Processing
License: Freeware | Download (62): Echo input with a time delay after each line Download |
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.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Converter, Csv, Csv Converter, File, File Converter, File To Csv
License: Freeware | Download (63): Convert DB Fixed-Width Output to CSV Format Download |
Efficient character escapes decoding script shows you how to use the Python built in codecs for an efficient decoding.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Built In Codecs, Character, Character Decoding, Codecs, Decoding, Python Codecs
License: Freeware | Download (67): Efficient character escapes decoding Download |
This script demonstrates some keyboard input functions and screen output "magic" that some people may be interested (such as for an ASCII game). It is meant as a very simple demonstration only, and does not contain any error checking whatsoever. The style of the code is not the best, but it is...
Platforms: Windows, Python,
Keyword: Ascii Game, Functions, Input, Input Functions, Keyboard, Keyboard Input
License: Freeware | Download (57): Input_demo Download |
Hierarchical Split script is useful when you want to split a string more times, hierarchically.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Management, Text, Text Management, Text Split, Text Tool, Tool
License: Freeware | Download (57): Hierarchical Split Download |
Align text string script aligns string with spaces between words to fit specified width.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Align, Align String, Align Text, String, Text, Words Spaces
License: Freeware | Download (61): Align text string Download |
This script uses Python's superb text handling capability to parse and build the data structure from the input text.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Build, Build Data Structure, Data, Structure, Text Handling, Text Parser
License: Freeware | Download (59): Design mini-lanugage Download |
This script represents a lightweight and powerful way to evaluate expressions embedded in strings during interpolation.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Evaluation, Evaluation Of Expressions, Interpolation, String, String Interpolation, Text Interpolation
License: Freeware | Download (64): String Interpolation-Evaluation of Expressions Download |
This script takes a string and returns a list containing the n-sized pieces of the string.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Split, Split String, String, Text, Text Split, Text Tool
License: Freeware | Download (56): Split String into n-size pieces Download |
Missing string functions script introduces some functions to help you manage international text.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: International, International Text, Python Extensions, String, String Functions, Text
License: Freeware | Download (58): Missing string functions Download |
This script debugs non-matching regular expressions by finding out the maximum parts of the pattern and the text that do match.
Platforms: Windows, Mac, *nix, Mac OSX, Linux, Python, BSD Solaris
Keyword: Expression, Failure, Regular, Regular Expression Failure, Text Check, Text Match
License: Freeware | Download (59): Regular expression point of failure Download |