## deserialize()


Deserialize bytes back into a Python object.


Usage


``` python
deserialize(data)
```


Reconstructs a Python object from a byte string that was previously created by [serialize](serialize.md#gdtest_docstring_seealso.serialize).


## Parameters


`data: bytes`  
A byte string produced by [serialize](serialize.md#gdtest_docstring_seealso.serialize).


## Returns


`object`  
The reconstructed Python object.


## Raises


`ValueError`  
If the byte string is corrupted or invalid.


## See Also

[serialize()](serialize.md#gdtest_docstring_seealso.serialize)  
Convert a Python object to bytes.


## Examples

``` python
>>> original = {"key": "value"}
>>> data = serialize(original)
>>> deserialize(data)
```

{'key': 'value'}
