As a first approach to loading read-only data into our application, we will use a comma-separated values (CSV) file. This format tabulates data in plain text files, where each file corresponds to the fields of a record, separated by commas, like so:
Gauford,Albertine,agauford0@acme.com,(614) 7171720
Greger,Bryce,bgreger1@acme.com,(616) 3543513
Wetherald,Rickey,rwetherald2@acme.com,(379) 3652495
This solution is easy to implement for simple scenarios, especially if the text fields do not contain line breaks. We will use the csv module from the standard library, and once the records are loaded into our application, we will populate the widgets developed in the previous recipes.