Computer¶
This documentation provides details about the data that can be faked for a computer.
To retrieve generated/fake data for a computer see the following capabilities:
from socfaker import SocFaker
sc = SocFaker()
print(sc.computer.architecture)
print(sc.computer.name)
print(sc.computer.disk)
print(sc.computer.memory)
print(sc.computer.platform)
print(sc.computer.mac_address)
print(sc.computer.os)
print(sc.computer.ipv4)
Computer Class¶
-
class
socfaker.computer.
Computer
¶ A computer object containing common properties about a computer
- Returns:
- Computer: An object containing common properties of a computer
-
architecture
¶ Architecture of a computer instance
- Returns:
- str: Architecture of computer system of either x86_64 or x86
-
disk
¶ The disk size of a computer instance
- Returns:
- list: Returns a list of B,KB,MB,GB, and TB size of a computers disk
-
ipv4
¶ The operating system ipv4 address
- Returns:
- str: A random operating system ipv4 address
-
mac_address
¶ A generated MAC address for a computer instance
- Returns:
- str: A random MAC Address
-
memory
¶ The memory size of a computer instance
- Returns:
- list: Returns a list of B,KB,MB,GB, and TB size of a computers memory size
-
name
¶ The name of a comptuer
- Returns:
- str: A random name of a computer
-
os
¶ The operating system full name of the computer instance
- Returns:
- str: A random operating system version
-
platform
¶ A random name of the computers platform
- Returns:
- str: Random name of a computers platform (e.g. worksation, server, etc.)