Chapter 14. Text Processing

As a developer, I prefer editing in plain text. XML doesn’t count.

—Wesley Chun, July 2009(verbally at OSCON conference)

In this chapter...

Comma-Separated Values

JavaScript Object Notation

Extensible Markup Language

Related Modules

Regardless of what type of applications you create, inevitably, you will need to process human-readable data, which is referred to generally as text. Python’s standard library provides three text processing modules and packages to help you get this job done: csv, json, and xml. We’ll explore these briefly in that order in this chapter.

At the end, we’ll merge together XML along with some of the client-server knowledge you acquired from Chapter 2, “Network Programming,” and show ...

Get Core Python Applications Programming, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.