Python File & Data
File & Data — File paths, archives, JSON, CSV, pickle, streams, encoding. This group brings together the Pathlib Module, Shutil Module, Glob Module, Fileinput Module, Tempfile Module, Zipfile Module, JSON Module, CSV Module, Pickle Module, IO Module, Base64 Module, Binascii Module, Mimetypes Module, Codecs Module categories of the Python standard library. json.dumps() serializes a Python object to a JSON formatted string. json.loads() deserializes a JSON string to a Python object. json.dump() serializes a Python object to a JSON formatted stream (file). json.load() deserializes a JSON formatted stream (file) to a Python object. csv.reader() returns a reader object that iterates over lines in a CSV file. Representative APIs from this group include json.dumps(), json.loads(), json.dump(), json.load(), csv.reader(), csv.writer(), csv.DictReader(), csv.DictWriter(). Each category page in this group lists its functions with syntax, parameters, return values, and runnable examples, so the group works as a map of a whole area of the standard library.