A quick intro to python types+standard module, with an emphasis on practical use and common gotchas.
A work-in-progress.
- Built-in types
int, float, str, bytes, tuple, list, range(), dict, set
- Built-in Exceptions
- Text Processing Services
string, re, difflib, textwrap, unicodedata, stringprep, readline, rlcompleter
- Binary Data Services
struct, codecs
- Data Types
data types: datetime, calendar, collections, array, weakref, types, enum fns for working with them: heapq, bisect, copy, pprint, reprlib
- Numeric and Mathematical Modules
numbers, math, cmath, decimal, fractions, random, statistics
- Functional Programming Modules
- File and Directory Access
pathlib, os.path, fileinput, stat, filecmp, tempfile, glob, fnmatch, linecache, shutil
- Data Persistence
copyreg, shelve, marshal, dbm, sqlite3
- Data Compression and Archiving
zlib, gzip, bz2, lzma, zipfile, tarfile
- File Formats
csv, configparser, netrc, xdrlib, plistlib
- Cryptographic Services
hashlib, hmac, secrets
- Generic Operating System Services
os, io, time, argparse, getopt, logging, logging.config, logging.handlers, getpass, curses, curses.textpad, curses.ascii, curses.panel, platform, errno, ctypes
- Concurrent Execution
- contextvars — Context Variables
- Networking and Interprocess Communication
- Internet Data Handling
- Structured Markup Processing Tools
- Internet Protocols and Support
- Multimedia Services
- Internationalization
- Program Frameworks
- Graphical User Interfaces with Tk
- Development Tools
- Debugging and Profiling
- Software Packaging and Distribution
- Python Runtime Services
- Custom Python Interpreters
- Importing Modules
- Python Language Services
- Miscellaneous Services
- MS Windows Specific Services
- Unix Specific Services
- Superseded Modules
- Undocumented Modules