13. File Formats¶
The modules described in this chapter parse various miscellaneous file formats that aren’t markup languages or are related to e-mail.
- 13.1.
csv
— CSV File Reading and Writing - 13.2.
ConfigParser
— Configuration file parserRawConfigParser
ConfigParser
SafeConfigParser
Error
NoSectionError
DuplicateSectionError
NoOptionError
InterpolationError
InterpolationDepthError
InterpolationMissingOptionError
InterpolationSyntaxError
MissingSectionHeaderError
ParsingError
MAX_INTERPOLATION_DEPTH
- 13.2.1. RawConfigParser Objects
RawConfigParser.defaults()
RawConfigParser.sections()
RawConfigParser.add_section()
RawConfigParser.has_section()
RawConfigParser.options()
RawConfigParser.has_option()
RawConfigParser.read()
RawConfigParser.readfp()
RawConfigParser.get()
RawConfigParser.getint()
RawConfigParser.getfloat()
RawConfigParser.getboolean()
RawConfigParser.items()
RawConfigParser.set()
RawConfigParser.write()
RawConfigParser.remove_option()
RawConfigParser.remove_section()
RawConfigParser.optionxform()
- 13.2.2. ConfigParser Objects
- 13.2.3. SafeConfigParser Objects
- 13.2.4. Examples
- 13.3.
robotparser
— Parser for robots.txt - 13.4.
netrc
— netrc file processing - 13.5.
xdrlib
— Encode and decode XDR dataPacker
Unpacker
- 13.5.1. Packer Objects
- 13.5.2. Unpacker Objects
Unpacker.reset()
Unpacker.get_position()
Unpacker.set_position()
Unpacker.get_buffer()
Unpacker.done()
Unpacker.unpack_float()
Unpacker.unpack_double()
Unpacker.unpack_fstring()
Unpacker.unpack_fopaque()
Unpacker.unpack_string()
Unpacker.unpack_opaque()
Unpacker.unpack_bytes()
Unpacker.unpack_list()
Unpacker.unpack_farray()
Unpacker.unpack_array()
- 13.5.3. Exceptions
- 13.6.
plistlib
— Generate and parse Mac OS X.plist
files