code: def get_all(rc_file='~/.odoorpcrc'):
      
      conf = ConfigParser()
      conf.read([os.path.expanduser(rc_file)])
      sessions = {}
      for name in conf.sections():
          sessions[name] = {
              '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'),
          }
      return sessions
docs: Return all session configurations from the `rc_file` file.
  
      >>> import odoorpc
      >>> from pprint import pprint as pp
      >>> pp(odoorpc.session.get_all())     # doctest: +SKIP
      {'foo': {'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_all()
          >>> data[session]['host'] == HOST
          True
          >>> data[session]['protocol'] == PROTOCOL
          True
          >>> data[session]['port'] == int(PORT)
          True
          >>> data[session]['database'] == DB
          True
          >>> data[session]['user'] == USER
          True
          >>> data[session]['passwd'] == PWD
          True
          >>> data[session]['type'] == 'ODOO'
          True