syspy
0.1
syspy windows system information tool with python
Main Page
Related Pages
Namespaces
Classes
Files
File List
test.py
Go to the documentation of this file.
1
from
info
import
Info
2
3
inf = Info()
4
5
def
user
():
6
"""
7
Username: ali Terminal: None Host: 0.0.0.0 Start Time: 2015-04-26 15:10:30
8
"""
9
a,b,c,d = inf.getUsers()
10
11
print(
"Username: {} Terminal: {} Host: {} Start Time: {}"
.format(a,b,c,d))
12
13
def
boot
():
14
"""
15
Boot Time: 2015-04-26 15:10:13
16
"""
17
a = inf.getBootTime()
18
print(
"Boot Time: {0}"
.format(a))
19
20
def
iterprocess
():
21
"""
22
{'name': 'DTLite.exe', 'pid': 1108}
23
{'name': None, 'pid': 1140}
24
{'name': None, 'pid': 1172}
25
{'name': None, 'pid': 1188}
26
{'name': None, 'pid': 1272}
27
{'name': None, 'pid': 1296}
28
{'name': None, 'pid': 1336}
29
{'name': None, 'pid': 1372}
30
{'name': None, 'pid': 1380}
31
{'name': 'chrome.exe', 'pid': 1464}
32
{'name': None, 'pid': 1520}
33
{'name': 'taskhost.exe', 'pid': 1536}
34
{'name': None, 'pid': 1656}
35
{'name': None, 'pid': 1664}
36
{'name': None, 'pid': 1752}
37
{'name': None, 'pid': 1796}
38
{'name': None, 'pid': 1808}
39
{'name': 'chrome.exe', 'pid': 1828}
40
{'name': 'GCTray.exe', 'pid': 1832}
41
"""
42
piter = inf.getProcessIter()
43
print(
"{0}"
.format(piter))
44
45
#user()
46
#boot()
47
#iterprocess()
syspy.info.test.user
def user()
Definition:
test.py:5
syspy.info.test.boot
def boot()
Definition:
test.py:13
syspy.info.test.iterprocess
def iterprocess()
Definition:
test.py:20
info
test.py
Generated on Sun Apr 26 2015 22:56:30 for syspy by
1.8.9.1