Home Page Icon
Home Page
Table of Contents for
Competing with High Quality Data
Close
Competing with High Quality Data
by Alan Gauld, Laura Cassell
Python Projects
Introduction
Why We Wrote This Book
Who This Book For
What You Will Learn
What You Need to Use This Book
Conventions
Source Code
Errata
p2p.wrox.com
Chapter 1: Reviewing Core Python
Exploring the Python Language and the Interpreter
Reviewing the Python Data Types
Using Python Control Structures
Getting Data In and Out of Python
Extending Python
Creating and Using Modules and Packages
Creating an Example Package
Using Third-Party Packages
Summary
Chapter 2: Scripting with Python
Accessing the Operating System
Working with Dates and Times
Handling Common File Formats
Accessing Native APIs with ctypes and pywin32
Automating Tasks Involving Multiple Applications
Summary
Chapter 3: Managing Data
Storing Data Using Python
Analyzing Data with Python
Managing Data Using SQL
Migrating LendyDB to an SQL Database
Exploring Other Data Management Options
Summary
Chapter 4: Building Desktop Applications
Structuring Applications
Building Command-Line Interfaces
Using the cmd Module to Build a Command-Line Interface
Reading Command-Line Arguments
Jazzing Up the Command-Line Interface with Some Dialogs
Programming GUIs with Tkinter
Storing Local Data
Understanding Localization
Summary
Chapter 5: Python on the Web
Python on the Web
Web Programming with Python
More on Python and the Web
Using Python Across the Wire
More Networking Fun in Python
Summary
Exercises
Chapter 6: Python in Bigger Projects
Testing with the Doctest Module
Testing with the Unittest Module
Test-Driven Development in Python
Debugging Your Python Code
Working on Larger Python Projects
Releasing Python Packages
Summary
Chapter 7: Exploring Python’s Frontiers
Drawing Pictures with Python
Doing Science with Python
Playing Games with Python
Going to the Movies
Integrating with Other Languages
Getting Physical
Building Python
Summary
Appendix A: Answers to Exercises
Appendix B: Python Standard Modules
Appendix C: Useful Python Resources
Asking Questions: Mailing Lists and More
Reading Blogs
Studying Tutorials and References
Watching Videos
And Now for Something Completely Different…
References
Title Page
Copyright
Dedication
About the Authors
About the Technical Editors
Credits
Acknowledgments
Advert
Wiley End User License Agreement
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Succession Planning for Financial Advisors
Next
Next Chapter
Introduction
Contents
Introduction
Why We Wrote This Book
Who This Book For
What You Will Learn
What You Need to Use This Book
Conventions
Source Code
Errata
p2p.wrox.com
Chapter 1: Reviewing Core Python
Exploring the Python Language and the Interpreter
Reviewing the Python Data Types
Using Python Control Structures
Getting Data In and Out of Python
Extending Python
Creating and Using Modules and Packages
Creating an Example Package
Using Third-Party Packages
Summary
Chapter 2: Scripting with Python
Accessing the Operating System
Working with Dates and Times
Handling Common File Formats
Accessing Native APIs with ctypes and pywin32
Automating Tasks Involving Multiple Applications
Summary
Chapter 3: Managing Data
Storing Data Using Python
Analyzing Data with Python
Managing Data Using SQL
Migrating LendyDB to an SQL Database
Exploring Other Data Management Options
Summary
Chapter 4: Building Desktop Applications
Structuring Applications
Building Command-Line Interfaces
Using the cmd Module to Build a Command-Line Interface
Reading Command-Line Arguments
Jazzing Up the Command-Line Interface with Some Dialogs
Programming GUIs with Tkinter
Storing Local Data
Understanding Localization
Summary
Chapter 5: Python on the Web
Python on the Web
Web Programming with Python
More on Python and the Web
Using Python Across the Wire
More Networking Fun in Python
Summary
Exercises
Chapter 6: Python in Bigger Projects
Testing with the Doctest Module
Testing with the Unittest Module
Test-Driven Development in Python
Debugging Your Python Code
Working on Larger Python Projects
Releasing Python Packages
Summary
Chapter 7: Exploring Python’s Frontiers
Drawing Pictures with Python
Doing Science with Python
Playing Games with Python
Going to the Movies
Integrating with Other Languages
Getting Physical
Building Python
Summary
Appendix A: Answers to Exercises
Appendix B: Python Standard Modules
Appendix C: Useful Python Resources
Asking Questions: Mailing Lists and More
Reading Blogs
Studying Tutorials and References
Watching Videos
And Now for Something Completely Different…
References
Title Page
Copyright
Dedication
About the Authors
About the Technical Editors
Credits
Acknowledgments
Advert
Wiley End User License Agreement
List of Tables
Chapter 1
Table 1.1
Table 1.2
Table 1.3
Table 1.4
Table 1.5
Chapter 2
Table 2.1
Chapter 3
Table 3.1
Table 3.2
Table 3.3
Table 3.4
Table 3.5
Table 3.6
Chapter 4
Table 4.1
List of Illustrations
Chapter 2
Figure 2.1 The toolhire spreadsheet
Chapter 4
Figure 4.1 Module interaction sequence diagram
Figure 4.2 Initial message box screenshot
Figure 4.3 Example of a GUI containment tree
Figure 4.4 demo1.py in action
Figure 4.5 Tic-tac-toe GUI design
Figure 4.6 Final Tkinter GUI
Figure 4.7 A Tix ComboBox
Figure 4.8 A Tix ScrolledText Widget in Action
Figure 4.9 Modifying Text appearance in a text widget
Figure 4.10 Tix Notebook showing two pages
Figure 4.11 Various ttk Themes
Chapter 5
Figure 5.1 Note the two sides of a web app: client-side and server-side. Server-side data is served via a web server such as Apache or Nginx.
Figure 5.2 Structure of a network request
Figure 5.3 The Chrome Developer Tools, illustrating the headers of a server request for a file
Figure 5.4 The DevTools Network tab
Figure 5.5 FigurePreview of the selected file
Figure 5.6 Headers for the selected file
Figure 5.7 The Headers tab in Chrome’s DevTools, illustrating the HTTP response from the USDA website
Figure 5.8 Note how this displays the HTML file we created earlier.
Guide
Cover
Table of Contents
Chapter 1
Pages
xxv
xxvi
xxvii
xxviii
xxix
xxx
1
3
4
5
6
7
8
10
11
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
34
35
36
37
38
39
40
41
42
43
44
45
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
70
71
73
74
75
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
96
97
100
101
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
127
128
129
130
131
132
133
135
136
137
138
139
140
142
143
144
145
146
147
148
149
151
152
153
154
155
156
157
158
161
162
163
165
166
167
168
169
170
171
172
173
174
175
176
178
179
180
181
184
185
186
187
188
189
191
193
194
195
196
197
198
199
200
202
204
205
206
207
208
211
213
214
215
217
218
219
220
221
223
224
225
228
231
232
233
234
236
237
238
239
240
241
242
243
244
245
247
248
250
251
252
253
255
257
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
285
288
289
293
294
295
296
297
298
299
300
303
304
306
307
308
309
310
312
313
316
319
320
321
322
323
324
325
326
327
328
329
331
332
333
334
335
336
337
338
339
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset