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...
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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.