Example #1
0
 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
Example #3
0
 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
Example #4
0
 def __init__(self, url, graph):
     url = process_url(url)
     self.base_url = url
     self.url = url + "/v1/graph"
     self.graph = graph
     self.elements = []
Example #5
0
 def __init__(self, url, name):
     url = process_url(url)
     self.base_url = url
     self.url = url + "/v1/graph/" + name
     self.name = name
Example #6
0
 def __init__(self, url):
     url = process_url(url)
     self.base_url = url
     self.url = url + "/v1/graph"