forked from chavarera/PythonScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
29 lines (22 loc) · 737 Bytes
/
main.py
File metadata and controls
29 lines (22 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import SystemDrives as sd
import OsInfo as oi
import NetworkInfo as ni
import SoftwareInfo as si
print('{:*^65s}'.format('Operating System Information'))
o1=oi.OsInfo()
for i in o1.Osinfo().items():
print('{}:{}'.format(i[0],i[1]))
print('\n\n{:*^65s}'.format('Drives On System'))
s1=sd.SystemDrives()
for s in s1.GetDrives():
print('{}'.format(s))
print('\n\n{:*^65s}'.format('Network Information'))
n1=ni.NetworkInfo()
for i in n1.networkinfo().items():
print('{}:{}'.format(i[0],i[1]))
print('\n\n{:*^65s}'.format('Installed Software'))
s1=si.SoftwareInfo()
i=1
print('{} Softwares installed'.format(s1.softwareinfo()['count']))
for s in s1.softwareinfo()['lists']:
print(s)