def setUp(self): ''' We introduce the data here ''' #We used the sandbox here geni.update_geni_address("https://sandbox.geni.com") geni.set_token(os.environ['SANDBOX_KEY'])
def __onGeniKeyUpdate(self, geni_key_updated): ''' This is a listener that will introduce data ''' self.app_data.setGENIkey(geni_key_updated) set_token(geni_key_updated) self.__runvalidation() pub.sendMessage('geni.key.validate', validation_status=self.valid_key)
def setUp(self): set_token(os.environ['GENI_KEY']) #This is used to identify the locationo of the file location1 = os.path.join(os.getcwd(), "fixtures_files") location2 = os.path.join(os.getcwd(), "tests", "fixtures_files") if os.path.exists(location1): self.filelocation = location1 else: self.filelocation = location2
def setUp(self): "Creation of the different parameters needs for execution, including location of database" location1 = os.path.join(os.getcwd(), "fixtures_files") location2 = os.path.join(os.getcwd(), "tests", "fixtures_files") set_token(os.environ['SANDBOX_KEY']) profile.s.update_geni_address("https://sandbox.geni.com") if os.path.exists(location1): self.filelocation = location1 else: self.filelocation = location2
def setUp(self): #We used the sandbox here set_token(os.environ['SANDBOX_KEY']) profile.s.update_geni_address("https://sandbox.geni.com") #We locate the folder here location1 = os.path.join(os.getcwd(), "fixtures_files") location2 = os.path.join(os.getcwd(), "tests", "fixtures_files") if os.path.exists(location1): self.filelocation = location1 else: self.filelocation = location2
def setUp(self): ''' Let's make it simple... is just a test not a good code. If it is not located in one place will be in another! ''' #We used the sandbox here set_token(os.environ['SANDBOX_KEY']) profile.s.update_geni_address("https://sandbox.geni.com") #We locate the folder here location1 = os.path.join(os.getcwd(), "fixtures_files") location2 = os.path.join(os.getcwd(), "tests", "fixtures_files") if os.path.exists(location1): self.filelocation = location1 else: self.filelocation = location2
def setUp(self): #We used the sandbox here set_token(os.environ['SANDBOX_KEY']) profile.s.update_geni_address("https://sandbox.geni.com")
def setUp(self): set_token(os.environ['GENI_KEY'])
def setUp(self): set_token(os.environ['GENI_KEY']) profile.s.update_geni_address("https://www.geni.com") profile.s.VERIFY_INPUT = "standard" self.philip = profile.profile(PHILIPIVg)
def setUp(self): set_token(os.environ['GENI_KEY']) geniapi_common.s.update_geni_address("https://www.geni.com") geniapi_common.s.VERIFY_INPUT = "standard"
Created on 10 sept. 2017 @author: Val This example takes an export from Family search in excel format. This export shall be the children of an specific profile. The inputs needed are: - The address of one of the parents of the profile. - The address of both profiles if the previous profile has 2 marriages (ideally select the profile with a single marriage) - The Token for geni. Obtain the token in this webpage: https://www.geni.com/platform/developer/api_explorer ''' from pyFS.pyfs_open_xlsx import getFSfamily from pyGeni import set_token my_file = "ENTER HERE THE LOCATION OF YOUR FILE" my_token = "INTRODUCE THE OBTAINED TOKEN" parent_profile = "INTRODUC THE HTTP ADDRESS OF THE PARENT PROFILE IF HAS A UNIQUE MARRIAGE" #We set the token set_token(my_token) family = getFSfamily(my_file) family.create_profiles_in_Geni(parent_profile)
def setUp(self): #We used the sandbox here set_token(WRONG_TOKEN) profile.s.update_geni_address("https://sandbox.geni.com")
''' Created on 24 sept. 2017 @author: Val This example provides the way to read Geni profiles ''' from pyGeni.profile import profile from pyGeni import set_token #Very first thing to do is to obtain a Geni key for your app #go to this location and get: #https://www.geni.com/platform/developer/api_explorer GENI_KEY = "IntroduceHereYourGeniKey" #First think is to update the GENI_KEY inside the module set_token(GENI_KEY) #Select the profile you would like to read in Geni, for example Philip IV king of Spain profile_web_address = "https://www.geni.com/people/Felipe-IV-el-Grande-rey-de-Espa%C3%B1a-y-Portugal/6000000000837888160" #We just get the profile philip = profile(profile_web_address)