faker.providers.profile

class faker.providers.profile.Provider(generator: Any)

Bases: faker.providers.BaseProvider

This provider is a collection of functions to generate personal profiles and identities.

profile(fields: Optional[List[str]] = None, sex: Optional[typing_extensions.Literal['M', 'F'][M, F]] = None) → Dict[str, Union[str, Tuple[decimal.Decimal, decimal.Decimal], List[str], datetime.date]]

Generates a complete profile. If “fields” is not empty, only the fields in the list will be returned

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.profile()
...
{'job': 'Musician', 'company': 'Williams-Sheppard', 'ssn': '498-52-4970', 'residence': 'Unit 5938 Box 2421\nDPO AP 33335', 'current_location': (Decimal('52.958961'), Decimal('143.143712')), 'blood_group': 'B+', 'website': ['http://www.rivera.com/', 'http://grimes-green.net/', 'http://www.larsen.com/'], 'username': 'leeashley', 'name': 'Gary Cross', 'sex': 'M', 'address': '711 Golden Overpass\nWest Andreaville, OH 44115', 'mail': 'tamaramorrison@hotmail.com', 'birthdate': datetime.date(1946, 8, 30)}
{'job': 'Producer, television/film/video', 'company': 'Carlson Group', 'ssn': '325-74-3967', 'residence': '09471 Erika Curve\nNorth Megan, MH 92162', 'current_location': (Decimal('55.1161875'), Decimal('30.075464')), 'blood_group': 'AB+', 'website': ['http://hill.com/', 'http://wilson.com/'], 'username': 'laura56', 'name': 'Denise Thornton', 'sex': 'F', 'address': '30989 Anthony Roads\nNew Maria, DE 51777', 'mail': 'woodtina@gmail.com', 'birthdate': datetime.date(1989, 12, 2)}
{'job': 'Advertising copywriter', 'company': 'Woodward and Sons', 'ssn': '736-16-7852', 'residence': '086 Mary Cliff\nNorth Deborah, MI 57657', 'current_location': (Decimal('-41.596282'), Decimal('-147.228089')), 'blood_group': 'O-', 'website': ['http://green.info/'], 'username': 'meganpeterson', 'name': 'Christina Saunders', 'sex': 'F', 'address': '207 Mccullough Well Suite 564\nNew Hannah, NH 97700', 'mail': 'rogersbrandon@yahoo.com', 'birthdate': datetime.date(1925, 11, 11)}
{'job': 'Film/video editor', 'company': 'Bell-Roberts', 'ssn': '368-76-2169', 'residence': '610 Holly Estate Apt. 376\nJohnsonshire, MT 87296', 'current_location': (Decimal('-77.4426735'), Decimal('-91.053928')), 'blood_group': 'O-', 'website': ['https://www.rose-freeman.net/'], 'username': 'zwilliams', 'name': 'Kathleen Collins', 'sex': 'F', 'address': '206 Stewart Forest\nLake Karenhaven, RI 13317', 'mail': 'davidbanks@yahoo.com', 'birthdate': datetime.date(1945, 8, 14)}
{'job': 'Education officer, environmental', 'company': 'Alvarez Group', 'ssn': '643-11-0358', 'residence': '42851 Joshua Brook Apt. 034\nStaceyshire, PW 06006', 'current_location': (Decimal('73.100442'), Decimal('171.844720')), 'blood_group': 'O-', 'website': ['https://thompson.com/', 'http://morgan-richardson.com/', 'https://www.nelson.org/', 'https://hays-anderson.com/'], 'username': 'turnermary', 'name': 'Timothy Parker', 'sex': 'M', 'address': '87755 Timothy Squares\nSimmonsport, MA 96806', 'mail': 'samanthasims@yahoo.com', 'birthdate': datetime.date(2017, 3, 23)}
simple_profile(sex: Optional[typing_extensions.Literal['M', 'F'][M, F]] = None) → Dict[str, Union[str, datetime.date, typing_extensions.Literal['M', 'F'][M, F]]]

Generates a basic profile with personal informations

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.simple_profile()
...
{'username': 'ysullivan', 'name': 'Jason Green', 'sex': 'M', 'address': '9382 Taylor Court Suite 892\nCoreyland, MH 90152', 'mail': 'thomas15@yahoo.com', 'birthdate': datetime.date(1950, 7, 19)}
{'username': 'davismary', 'name': 'Mrs. Sharon Green', 'sex': 'F', 'address': '753 Padilla Circles\nNew Jeffrey, AS 19178', 'mail': 'udavis@hotmail.com', 'birthdate': datetime.date(1974, 2, 7)}
{'username': 'lisa83', 'name': 'Doris Martinez', 'sex': 'F', 'address': 'USNV Wallace\nFPO AP 50950', 'mail': 'barbara42@gmail.com', 'birthdate': datetime.date(2019, 4, 25)}
{'username': 'daviskatherine', 'name': 'Vicki Green', 'sex': 'F', 'address': '86848 Melissa Springs\nRileymouth, NM 87040', 'mail': 'christopher91@yahoo.com', 'birthdate': datetime.date(1987, 5, 31)}
{'username': 'thorntonnathan', 'name': 'David Dennis', 'sex': 'M', 'address': '12309 Anthony Roads Apt. 991\nDavisville, AZ 79865', 'mail': 'leetara@hotmail.com', 'birthdate': datetime.date(1924, 5, 16)}