from typing import List
from typing import Mapping


def get_attrs(obj: object, attrs: List) -> Mapping:
    """
    Get a mapping of names:values of selected attributes of an object.
    """
    return {attr: obj.__getattribute__(attr) for attr in attrs}