-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathezfetch.py
51 lines (42 loc) · 1.45 KB
/
ezfetch.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import platform
import os
import socket
import psutil
import time
from colorama import Fore, Back, Style, init
init()
from cpuinfo import get_cpu_info as cpu_info
hostname = socket.gethostname()
ip_address = socket.gethostbyname(hostname)
def seconds_elapsed():
return time.time() - psutil.boot_time()
print("\n")
print(Fore.BLUE + """
.oodMMMMMMMMMMMMM
..oodMMM MMMMMMMMMMMMMMMMMMM
oodMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMM
`^^^^^^MMMMMMM MMMMMMMMMMMMMMMMMMM
````^^^^ ^^MMMMMMMMMMMMMMMMM
````^^^^^^MMMM
""")
print("ezfetch 1.0.0")
print("\n")
print(Fore.RED + platform.node())
print("-----------")
print("OS ", platform.system(), platform.release())
print("CPU ", cpu_info()['brand_raw'])
print("Uptime ", seconds_elapsed())
print(f"IP Address {ip_address}")
print("Python Version ", platform.python_version())
print('CPU Usage ', psutil.cpu_percent(4),"%")
print('Ram Usage ', psutil.virtual_memory()[2],"%", "\n")