User Tools

Site Tools


other:python:misc_by_jyp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
other:python:misc_by_jyp [2022/12/12 12:11]
jypeter Added the "Storing objects and data in a file" section
other:python:misc_by_jyp [2022/12/12 12:35]
jypeter Added config file section
Line 231: Line 231:
 ==== Storing objects and data in a file (shelve and friends) ==== ==== Storing objects and data in a file (shelve and friends) ====
  
-The built-in [[other:​python:​jyp_steps?s[]=shelve#​the_shelve_package|shelve]] module can be **easily** used for storing temporary/​intermediate data+The built-in [[other:​python:​jyp_steps#​the_shelve_package|shelve]] module can be **easily** used for storing temporary/​intermediate data
  
 More options: More options:
Line 237: Line 237:
   * Working with [[other:​python:​jyp_steps#​netcdf_filesusing_cdms2_xarray_and_netcdf4|NetCDF]] files   * 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 ====
  
other/python/misc_by_jyp.txt · Last modified: 2024/04/19 12:02 by jypeter