SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17
Load or save values to a file.
Shelves work well for storing data, but they are slow to access repeatedly - especially for large data sets. This module allows you to store data to a file and then load it back into the workspace. When the data is stored, a python module is also created as the "namespace for the data" >>> import data_store >>> import os >>> a = 1 >>> data_store.save('c:/temp/junker',{'a':a}) >>> os.chdir('c:/temp') >>> import junker >>> junker.a 1
Create the module file.
Use this to write the data to a new file
Load data into module from a shelf with the same name as the module.
Save the dictionary "data" into a module and shelf named save
| Local name | Refers to |
|---|---|
| dumb_shelve | SciPy.io.dumb_shelve |
| os | os |