def get_primary_keys(model):
    """Get primary key properties for a SQLAlchemy model.

    :param model: SQLAlchemy model class
    """
    mapper = model.__mapper__
    return tuple((
        mapper.get_property_by_column(column)
        for column in mapper.primary_key
    ))