A Python module for reading and writing Fortran 90 namelist files. Current version is 1.5 with irregular release cadence. Supports parsing, modifying, and writing namelist files, preserving structure and comments.
pip install f90nmlVerified import paths — ran on the pinned version, not inferred.
Basic usage: read, modify, write namelist files.
Use: with open('file.nml', 'w') as f: nml.write(f)Handle duplicate keys via f90nml.Cogroup or use nml.todict() with dups=True to get list representation.
Use custom formatting or work with string representation if needed.
Manually convert string values to lowercase/uppercase as needed.
Use: from f90nml import Namelist or f90nml.Namelist
Use: with open('file.nml', 'w') as f: nml.write(f)Ensure all namelist group and variable names are strings.
Use: nml['group']['key'].extend([value]) or nml['group']['key'] = f90nml.Cogroup([value1, value2])
No dependency data recorded yet.