Tutorial ======== First, make sure that :py:mod:`typedinterpolation` is :ref:`installed ` Use basic typed interpolation ----------------------------- Begin by importing the configparser and the :py:mod:`typedinterpolation` module:: >>> import configparser >>> import typedinterpolation Now, we create a :py:class:`configparser.ConfigParser` instance that uses the :py:class:`typedinterpolation.TypedBasicInterpolation`. :: >>> config = configparser.ConfigParser(interpolation=typedinterpolation.TypedBasicInterpolation()) Let's test it with parsing a string:: >>> config.read_string("[main]\ntest = 1") >>> config['main']['test'] 1 >>> type(_)