def get_shard_number(self):
    return int(self.key().name().split("-")[-1])
Gets the shard number from the key name.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/model.py/ShardState.get_shard_number