This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:python:misc_by_jyp [2022/07/08 14:00] jypeter [numpy related stuff] Added the arbitrary object array |
other:python:misc_by_jyp [2022/12/12 12:35] jypeter Added config file section |
||
---|---|---|---|
Line 229: | Line 229: | ||
</code> | </code> | ||
+ | ==== Storing objects and data in a file (shelve and friends) ==== | ||
+ | |||
+ | The built-in [[other:python:jyp_steps#the_shelve_package|shelve]] module can be **easily** used for storing temporary/intermediate data | ||
+ | |||
+ | More options: | ||
+ | * Some [[other:python:jyp_steps#data_file_formats|non-NetCDF]] file formats | ||
+ | * Working with [[other:python:jyp_steps#netcdf_filesusing_cdms2_xarray_and_netcdf4|NetCDF]] files | ||
+ | |||
+ | ==== Using a configuration file ==== | ||
+ | |||
+ | The built-in [[https://docs.python.org/3/library/configparser.html|configparser]] module can be easily used for reading (**and** writing!) text configuration files. | ||
+ | |||
+ | Note: a configuration file is also a way to easily store and exchange text data ! | ||
==== Sorting ==== | ==== Sorting ==== | ||