MCPcopy Create free account
hub / github.com/dask/dask / deserialize

Function deserialize

dask/config.py:866–882  ·  view source on GitHub ↗

De-serialize config data into the original object. Typically when receiving config via the ``DASK_INTERNAL_INHERIT_CONFIG`` environment variable. Parameters ---------- data: str String serialized by :func:`dask.config.serialize` Returns ------- deserialized_dat

(data: str)

Source from the content-addressed store, hash-verified

864
865
866def deserialize(data: str) -> Any:
867 """De-serialize config data into the original object.
868
869 Typically when receiving config via the ``DASK_INTERNAL_INHERIT_CONFIG`` environment variable.
870
871 Parameters
872 ----------
873 data: str
874 String serialized by :func:`dask.config.serialize`
875
876 Returns
877 -------
878 deserialized_data: obj
879 The de-serialized data
880
881 """
882 return json.loads(base64.urlsafe_b64decode(data.encode()).decode())
883
884
885def _initialize() -> None:

Callers 2

collect_envFunction · 0.85

Calls

no outgoing calls

Tested by 1