python file created

This commit is contained in:
Ramzi Idir 2026-01-09 14:52:27 +01:00
parent 649f8a21aa
commit d80ced697e
3 changed files with 43 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.DS_Store

View File

@ -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
View 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