code: def get(self, key, default=None, cast=None):
          
          try:
              # First: check environment variable is set
              envkey = 'PLEXAPI_%s' % key.upper().replace('.', '_')
              value = os.environ.get(envkey)
              if value is None:
                  # Second: check the config file has attr
                  section, name = key.lower().split('.')
                  value = self.data.get(section, {}).get(name, default)
              return cast(value) if cast else value
          except:  # noqa: E722
              return default
docs: Returns the specified configuration value or <default> if not found.
  
              Parameters:
                  key (str): Configuration variable to load in the format '<section>.<variable>'.
                  default: Default value to use if key not found.
                  cast (func): Cast the value to the specified type before returning.