About 1,380 results
Open links in new tab
  1. pickle — Python object serialization — Python 3.13.3 documentation

    1 day ago · To serialize an object hierarchy, you simply call the dumps() function. Similarly, to de-serialize a data stream, you call the loads() function. However, if you want more control over serialization and de-serialization, you can create a Pickler or an Unpickler object, respectively. The pickle module provides the following constants: pickle.

  2. marshal — Internal Python object serialization

    4 days ago · marshal — Internal Python object serialization¶ This module contains functions that can read and write Python values in a binary format. The format is specific to Python, but independent of machine architecture issues (e.g., you can write a Python value to a file on a PC, transport the file to a Mac, and read it back there).

  3. json — JSON encoder and decoder — Python 3.13.3 documentation

    1 day ago · Serialize obj as a JSON formatted stream to fp (a .write()-supporting file-like object) using this Python-to-JSON conversion table. Note Unlike pickle and marshal , JSON is not a framed protocol, so trying to serialize multiple objects with repeated calls to dump() using the same fp will result in an invalid JSON file.

  4. Data Persistence — Python 3.13.3 documentation

    5 days ago · The modules described in this chapter support storing Python data in a persistent form on disk. The pickle and marshal modules can turn many Python data types into a stream of bytes and then recreate the objects from the bytes.

  5. The Python Standard Library — Python 3.13.3 documentation

    2 days ago · While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. It also describes some of the optional components that are commonly included in Python distributions.

  6. struct — Interpret bytes as packed binary data — Python 3.13.3 ...

    2 days ago · Python object serialization. Applications ¶ Two main applications for the struct module exist, data interchange between Python and C code within an application or another application compiled using the same compiler ( native formats ), and data interchange between applications using agreed upon data layout ( standard formats ).

  7. Using importlib.metadata — Python 3.9.22 documentation

    Mar 9, 2022 · The default PathFinder for Python includes a hook that calls into importlib.metadata.MetadataPathFinder for finding distributions loaded from typical file-system-based paths. The abstract class importlib.abc.MetaPathFinder defines the interface expected of finders by Python’s import system.

Refresh