Employee¶
This documentation provides details about the data that can be faked for an Employee.
To retrieve generated/fake data for an Employee see the following capabilities:
from socfaker import SocFaker
sc = SocFaker()
print(sc.employee.name)
print(sc.employee.first_name)
print(sc.employee.last_name)
print(sc.employee.username)
print(sc.employee.email)
print(sc.employee.gender)
print(sc.employee.account_status)
print(sc.employee.ssn)
print(sc.employee.dob)
print(sc.employee.photo)
print(sc.employee.user_id)
print(sc.employee.phone_number)
print(sc.employee.logon_timestamp)
print(sc.employee.language)
print(sc.employee.title)
print(sc.employee.department)
Employee Class¶
-
class
socfaker.employee.
Employee
¶ The Employee class generates random data related to an employee/user
-
account_status
¶ Account status of an employee
- Returns:
- str: Returns an employee’s account status. This is weighted towards enabled.
-
department
¶ Employee department
- Returns:
- str: Returns a random employee department
-
dob
¶ Date of Birth of an employee
- Returns:
- str: Returns the date of birth (DOB) of an employee
-
email
¶ Email of an employee
- Returns:
- str: Returns the email address of an employee
-
first_name
¶ First name of an employee
- Returns:
- str: Returns the first name of an employee
-
gender
¶ Gender of an employee
- Returns:
- str: Returns the gender of an employee
-
language
¶ The preferred employee language
- Returns:
- str: Returns a random language of an employee
-
last_name
¶ Last name of an employee
- Returns:
- str: Returns the last name of an employee
-
logon_timestamp
¶ Last logon timestamp of an employee
- Returns:
- str: Returns a random ISO 8601 timestamp of an employee in the past
-
name
¶ Returns First and Last name of an employee
- Returns:
- str: Returns a random First and Last name of an employee
-
phone_number
¶ Phone number of an employee
- Returns:
- str: Returns a random phone number of an employee
-
photo
¶ Photo URL of an employee
- Returns:
- str: Returns a URL of a random photo for the employee
-
ssn
¶ SSN of an employee
- Returns:
- str: Returns the SSN of an employee
-
title
¶ Employee title
- Returns:
- str: Returns a random employee title
-
user_id
¶ User ID of an employee
- Returns:
- str: Returns a random user ID of an employee
-
username
¶ Username of an employee
- Returns:
- str: Returns the username of an employee
-