bloqade.analog.serialize.load
← Module overview
function
source
functionload¶source
bloqade.analog.serialize.load
Signature
def load(fp: Union[TextIO, str], use_decimal: bool = True, **json_kwargs={})Load object from file
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
fp | Union[TextIO, str] | required | the file path or file object |
use_decimal | bool | True | use decimal.Decimal for numbers. Defaults to True. |
**json_kwargs | — | {} |
Returns
Any: the deserialized object