alsmanager_lib 2.0.99 → 2.0.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/pythons/main.py +11 -0
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./lib/modules.js",
5
5
  "./dbconn": "./lib/dbconn.js"
6
6
  },
7
- "version": "2.0.99",
7
+ "version": "2.0.100",
8
8
  "description": "Funzioni per ALSManager",
9
9
  "license": "ISC",
10
10
  "author": "Luca Cattani",
package/pythons/main.py CHANGED
@@ -4,6 +4,7 @@ import socket
4
4
  import re
5
5
  import uuid
6
6
  import cpuinfo
7
+ from hurry.filesize import size
7
8
 
8
9
  #Computer network name
9
10
  print(f"Computer network name: {platform.node()}")
@@ -55,5 +56,15 @@ print(f"Win32 Arch: {platform.architecture()}")
55
56
  #print(f"CpuInfo: {cpuinfo.get_cpu_info()}")
56
57
  print(f"CpuInfo: {cpuinfo.get_cpu_info()['brand_raw']}")
57
58
 
59
+ #Disk
60
+ print(psutil.disk_usage('/'))
61
+ total, used, free, percent = psutil.disk_usage('/')
62
+ # Using size to have compact view
63
+ print(size(total))
64
+ # Battery - Array
65
+ battery = psutil.sensors_battery()
66
+
67
+ #Process
68
+ print(psutil.users())
58
69
 
59
70