python file created
This commit is contained in:
parent
649f8a21aa
commit
d80ced697e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.DS_Store
|
||||
@ -256,7 +256,7 @@ software() {
|
||||
echo "ARCHITECTURE = $ARCH"
|
||||
echo "KERNEL = $KERNEL"
|
||||
echo "DESKTOP = $XDG_CURRENT_DESKTOP"
|
||||
echo "WINDOW MANAGER = $XDG_SESSION_TYPE"
|
||||
echo "WINDOW_MANAGER = $XDG_SESSION_TYPE"
|
||||
} >> $SUM_FILE
|
||||
|
||||
###############################################
|
||||
|
||||
41
ordinateur.py
Normal file
41
ordinateur.py
Normal file
@ -0,0 +1,41 @@
|
||||
#!/usr/bin/python3
|
||||
import configparser
|
||||
|
||||
class ordinateur():
|
||||
mb_serial=" "
|
||||
cpu_model=" "
|
||||
cpu_id=" "
|
||||
cpu_cores_number=" "
|
||||
cpu_threads_number=" "
|
||||
cpu_frequency_min=" "
|
||||
cpu_frequency_cur=" "
|
||||
cpu_frequency_max=" "
|
||||
gpu_model=" "
|
||||
ram_slots_number=" "
|
||||
ram_number=" "
|
||||
ram_gen=" "
|
||||
|
||||
os=" "
|
||||
architecture=" "
|
||||
desktop=" "
|
||||
window_manager=" "
|
||||
kernel=" "
|
||||
|
||||
def reload(self):
|
||||
return
|
||||
def fetch_summary(self):
|
||||
return
|
||||
def shutdown():
|
||||
return
|
||||
def status(self):
|
||||
return
|
||||
def link_to_user(self,user):
|
||||
return
|
||||
def remove_user_access(self):
|
||||
return
|
||||
def show_users(self):
|
||||
return
|
||||
|
||||
sum=configparser.ConfigParser()
|
||||
sum.read("/opt/grabber/summary.txt")
|
||||
sum.sections
|
||||
Reference in New Issue
Block a user