15.04.2013 Views

Core Python Programming (2nd Edition)

Core Python Programming (2nd Edition)

Core Python Programming (2nd Edition)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.9. Related Modules<br />

Table 6.10 lists the key related modules for strings that are part of the <strong>Python</strong> standard library.<br />

Table 6.10. Related Modules for String Types<br />

Module Description<br />

string String manipulation and utility functions, i.e., Template class<br />

re Regular expressions: powerful string pattern matching<br />

struct Convert strings to/from binary data format<br />

c/StringIO String buffer object that behaves like a file<br />

base64 Base 16, 32, and 64 data encoding and decoding<br />

codecs Codec registry and base classes<br />

crypt Performs one-way encryption cipher<br />

[a] Various "differs" for sequences<br />

difflib<br />

[b] API to many different secure hash and message digest algorithms<br />

hashlib<br />

[c] Keyed-hashing for message authentication<br />

hmac<br />

[d] RSA's MD5 message digest authentication<br />

md5<br />

rotor Provides multi-platform en/decryption services<br />

[d] NIST's secure hash algorithm SHA<br />

sha<br />

[e] Prepares Unicode strings for use in Internet protocols<br />

stringprep<br />

[e] Text-wrapping and filling<br />

textwrap<br />

unicodedata Unicode database<br />

[a] New in <strong>Python</strong> 2.1.<br />

[b] New in <strong>Python</strong> 2.5.<br />

[c] New in <strong>Python</strong> 2.2.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!