def class_keys(cls):
    reverse_map = {}
    for name, attr in public_vars(cls).items():
        try:
            reverse_map[attr.property.columns[0].name] = name
        except:
            pass
    mapper = class_mapper(cls)
    return tuple(reverse_map[key.name] for key in mapper.primary_key)
Test wire.Discard protocol.
dataset/ETHPy150Open dealertrack/djangorest-alchemy/djangorest_alchemy/inspector.py/class_keys--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_protocols.py/WireTestCase.test_discard