def simple_profile(self, sex=None):
        """
        Generates a basic profile with personal informations
        """
        SEX = ["F", "M"]
        if sex not in SEX:
            sex = self.random_element(SEX)
        if sex == 'F':
            name = self.generator.name_female()
        elif sex == 'M':
            name = self.generator.name_male()
        return {
            "username": self.generator.user_name(),
            "name": name,
            "sex": sex,
            "address": self.generator.address(),
            "mail": self.generator.free_email(),
            "birthdate": self.generator.date_of_birth(),
        }
def simple_profile ( self , sex = None ) : SEX = [ "F" , "M" ] if sex not in SEX : sex = self . random_element ( SEX ) if sex == 'F' : name = self . generator . name_female ( ) elif sex == 'M' : name = self . generator . name_male ( ) return { "username" : self . generator . user_name ( ) , "name" : name , "sex" : sex , "address" : self . generator . address ( ) , "mail" : self . generator . free_email ( ) , "birthdate" : self . generator . date_of_birth ( ) , }
Generates a basic profile with personal informations