nspyre.data.file
Module Contents
Functions
|
Save data to a json file. |
|
Save data to a python pickle file. |
|
Load data from a JSON file. |
|
Load data from a Python pickle file. |
- nspyre.data.file.save_json(filename, data)
Save data to a json file.
- Parameters:
filename (Union[str, pathlib.Path]) – File to save to.
data (Any) – Python object to save.
- nspyre.data.file.save_pickle(filename, data)
Save data to a python pickle file.
- Parameters:
filename (Union[str, pathlib.Path]) – File to save to.
data (Any) – Python object to save.
- nspyre.data.file.load_json(filename)
Load data from a JSON file.
- Parameters:
filename (Union[str, pathlib.Path]) – File to load from.
- Returns:
A Python object loaded from the file.
- Return type:
Any
- nspyre.data.file.load_pickle(filename)
Load data from a Python pickle file.
- Parameters:
filename (Union[str, pathlib.Path]) – File to load from.
- Returns:
A Python object loaded from the file.
- Return type:
Any