def as_url(self, endpoint=None):
    url = 'http://%s:%s/%s' % (self.ip, self.port, self.id)
    if endpoint:
      url += '/%s' % endpoint
    return url
dataset/ETHPy150Open wickman/compactor/compactor/pid.py/PID.as_url/original