def get_key_from_instance(self, instance):
        return self.get_key_from_kwargs(**dict((f, getattr(instance, f)) for f in self.key))
Return the routing key for an instance.
dataset/ETHPy150Open disqus/sharding-example/sqlshards/db/shards/models.py/MasterShardOptions.get_key_from_instance