code: def get(name, rc_file='~/.odoorpcrc'):
      
      conf = ConfigParser()
      conf.read([os.path.expanduser(rc_file)])
      if not conf.has_section(name):
          raise ValueError(
              "'%s' session does not exist in %s" % (name, rc_file))
      return {
          'type': conf.get(name, 'type'),
          'host': conf.get(name, 'host'),
          'protocol': conf.get(name, 'protocol'),
          'port': conf.getint(name, 'port'),
          'timeout': conf.getfloat(name, 'timeout'),
          'user': conf.get(name, 'user'),
          'passwd': conf.get(name, 'passwd'),
          'database': conf.get(name, 'database'),
      }
docs: Return the session configuration identified by `name`
      from the `rc_file` file.
  
      >>> import odoorpc
      >>> from pprint import pprint as pp
      >>> pp(odoorpc.session.get('foo'))    # doctest: +SKIP
      {'database': 'db_name',
       'host': 'localhost',
       'passwd': 'password',
       'port': 8069,
       'protocol': 'jsonrpc',
       'timeout': 120,
       'type': 'ODOO',
       'user': 'admin'}
  
      .. doctest::
          :hide:
  
          >>> import odoorpc
          >>> session = '%s_session' % DB
          >>> odoo.save(session)
          >>> data = odoorpc.session.get(session)
          >>> data['host'] == HOST
          True
          >>> data['protocol'] == PROTOCOL
          True
          >>> data['port'] == int(PORT)
          True
          >>> data['database'] == DB
          True
          >>> data['user'] == USER
          True
          >>> data['passwd'] == PWD
          True
          >>> data['type'] == 'ODOO'
          True
  
      :raise: `ValueError` (wrong session name)