Geometric String Art
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...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Conversion to unicode or byte string Download |
This one line function adds up the ascii values of a string and returns the total as a checksum. Also included is a variation which returns the checksum mod 256 (so it can be used as a single byte).The same technique can be used to add up a list of numbers, or to return the average of a list...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (63): Simple string checksum Download |
This function allows you to process a string by one character at a time.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Processing a string-one character at a time Download |
This script allows you to replace a portion of a string at a given position.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (59): Replacing a portion of a string Download |
This script go thru directory tree and looks for files of specified pattern, and then replace in those files a string with new one, overwriting old file without backups.
Platforms: Windows, Python,
License: Freeware | Download (57): Replace occurrence of string in files Download |
This script shows a simple (but not hopelessly fragile) approach for string substitution.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (64): String substitution shorty Download |
Custom String Representations of Bases script allows you to make a number shorter(like timestamps in URLs).
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (62): Custom String Representations of Bases Download |
Align text string script aligns string with spaces between words to fit specified width.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (61): Align text string Download |
This script takes a string and returns a list containing the n-sized pieces of the string.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
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, Python, BSD Solaris
License: Freeware | Download (58): Missing string functions Download |
Hash a string script hashes a string (preferably your name) to an alter ego description.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Hash a string Download |
This script allows you to generate all the string described by a pattern passed on the command-line.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (58): Simple pattern-based string generator Download |
This script represents a way to parse command line from user provided string or try to get the original Argv from Windows OS Platform.
Platforms: Windows, Python,
License: Freeware | Download (57): Parse Command Line String from CommandLine Download |
For quick-and-dirty processing of Python source files, it can be convenient to have a regular expression that matches Python string literals. This script provides such a regular expression. The example use case above shows how it could be used to rename a variable in a P shows hoe.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (59): Regular expression for python string literals Download |
This script implements a string searching algorithm based upon Boyer-Moore string searching, which is considered one of the most efficient string searching algorithms. Boyer-Moore-Horspool only uses the bad-suffix window for matching and is therefore simpler to implement and faster than normals...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (60): Boyer-Moore-Horspool string searching Download |
Reverse a string script allows you to reverse a string.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (57): Reverse a string Download |
Pseudo-random string to float conversion script converts strings to floats in the range [0, 1), using a hash function.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (51): Pseudo-random string to float conversion Download |
The main purpose of these functions are to allow encoding a string from base 256 to a special base 255. The function view the strings as numbers and simply change what base they are written in. This is not recommended for very long strings; otherwise, the encoding and decoding process can take a...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): Encoding A String Download |
This script is a queue data structure, for string data only, which looks like a File object. This class takes care of the list.append and .join mess, which is needed for fast string concatenation.
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (53): A queue for string data Download |
The main purpose of these functions are to encrypt and decrypt a string (or change the string from one "language" into another). The code is simple, but it provides a simple solution to a well-known encryption scheme. As a recommendation, this may be better when used in conjunction with an...
Platforms: Windows, Mac, *nix, Python, BSD Solaris
License: Freeware | Download (52): Encrypting A String Download |