from typing import Dict


def get_all_sites(api) -> Dict[str, str]:
    """Returns all the StackExchange sites as a dict, api_site_parameter -> name"""
    # hacky way to get everything..
    res = api.fetch('sites')
    return {s['api_site_parameter']: s['name'] for s in res['items']}