'Method Docs.'

def __init__(self, path):

    super(PackageIndexFile, self).__init__(path)
    self._is_readonly = True
    self._info = {u'packages': {}}
    self._info[u'packages'][u'names'] = []
    package_infos = self._data.get(u'packages', [])
    for package_info in package_infos:
        package_name = package_info.get(u'name', u'')
        platform_info = get_item_info(package_info, u'platforms')
        tool_info = get_item_info(package_info, u'tools')
        package_info[u'platforms'] = platform_info
        package_info[u'tools'] = tool_info
        self._info[u'packages'][u'names'].append(package_name)
        self._info[u'packages'][package_name] = package_info
    self._info[u'packages'][u'names'].sort(key=str.lower)
