def _generate_urls(self):
        if self.ssl is True:
            self.schema = "https"
        else:
            self.schema = "http"
        self.read_url     = "{0}://{1}:{2}/api/v1/datapoints/query".format(self.schema, self.server, self.port)
        self.read_tag_url = "{0}://{1}:{2}/api/v1/datapoints/query/tags".format(self.schema, self.server, self.port)
        self.write_url    = "{0}://{1}:{2}/api/v1/datapoints".format(self.schema, self.server, self.port)
        self.delete_dps_url = "{0}://{1}:{2}/api/v1/datapoints/delete".format(self.schema, self.server, self.port)
        self.delete_metric_url = "{0}://{1}:{2}/api/v1/metric/".format(self.schema, self.server, self.port)
This method creates the URL each time a read or write operation is performed.
dataset/ETHPy150Open pcn/pyKairosDB/pyKairosDB/connection.py/KairosDBConnection._generate_urls