def __init__(self, url, user=None, password=None): url = process_url(url) self.base_url = url self.url = url + "/v1/graph" if user is None: user = os.getenv("ARACHNE_USER", None) self.user = user if password is None: password = os.getenv("ARACHNE_PASSWORD", None) self.password = password
def __init__(self, url, graph, user=None, password=None): self.query = [] url = process_url(url) self.base_url = url self.url = url + "/v1/graph/" + graph + "/query" self.graph = graph if user is None: user = os.getenv("ARACHNE_USER", None) self.user = user if password is None: password = os.getenv("ARACHNE_PASSWORD", None) self.password = password
def __init__(self, url, graph): self.query = [] url = process_url(url) self.base_url = url self.url = url + "/v1/graph/" + graph + "/query" self.graph = graph
def __init__(self, url, graph): url = process_url(url) self.base_url = url self.url = url + "/v1/graph" self.graph = graph self.elements = []
def __init__(self, url, name): url = process_url(url) self.base_url = url self.url = url + "/v1/graph/" + name self.name = name
def __init__(self, url): url = process_url(url) self.base_url = url self.url = url + "/v1/graph"