I am teaching a graduate level Python class at the University of Paris, and the students need to be introduced to the standard library. I want to discuss with them about some of the most important standard modules.
What modules do you think are absolute musts? Even though responses probably vary depending on your field (web programming, science, etc.), I feel that some modules are commonly needed: math
, sys
, re
, os
, os.path
, logging
,… and maybe: collections
, struct
,…
What modules would you suggest I present, in a 1 or 2 hour slot?
Modules to cover in a 1-2 hour slot entirely depend on your audience's interest or focus. What other classes are they taking? What are they prepared to make use of immediately?
Be sure to mention math
, decimal
and datetime
and time
and re
.
For IT-types who will be doing file-oriented work: glob
, fnmatch
, os
, os.path
, tempfile
, and shutil
.
Database folks must hear about sqlite
and json
.
Simulation audience may want to hear about random
.
Web developers must hear about urllib2
from a client point of view. Also Beautiful Soup and an XML parser of your choice.
Web developers must hear about logging
and wsgiref
from a server point of view.