Version 4.3.13
py -m pip install --upgrade pip
python -m pip install --upgrade pip
pip install PyScriptTools
py -m pip install PyScriptTools
pip install -U PyScriptTools
py -m pip install --upgrade PyScriptTools
Classes | Methods Count |
---|---|
NetworkTools | 11 |
CPUTools | 8 |
GPUTools | 8 |
RAMTools | 8 |
DiskTools | 6 |
SystemTools | 12 |
OtherTools | 3 |
Total Methods | 56 |
---|
Methods | Args | Efficiency |
---|---|---|
ShowLocalIP | show | Returns Local IP Address |
ShowPublicIP | show | Returns Public IP Address |
ShowMacAddress | show , network_request | Returns Mac Address |
ShowIPV4 | show | Returns All Available IPV4s |
ShowIPV6 | show | Returns All Available IPV6s |
ShowDefaultGateway | show | Returns All Available Default Gateways |
ShowNetworkInfo | show | Returns Network Information |
ShowSavedNetworks | show | Returns a Bunch of Saved Networks |
ShowSavedNetworkWithPassword | show , network_name | Returns The Selected Network Name With Password |
TestConnection | show , timeout | Tests That Connected To Internet |
StatusCodeChecker | show , link | Checks Every Status Codes on Every Urls You Want |
Methods | Args | Efficiency |
---|---|---|
ShowCPUType | show | Returns CPU Type |
ShowCPUPhysicalCores | show | Returns CPU Physical Cores |
ShowCPUTotalCores | show | Returns CPU Total Cores |
ShowCPUMaxFreq | show | Returns CPU Maximum Frequency |
ShowCPUMinFreq | show | Returns CPU Minimum Frequency |
ShowCPUCurrentFreq | show | Returns CPU Current Frequency |
ShowCPUTotalUsage | show | Returns CPU Total Usage |
ShowCPUUsagePerCore | show | Returns CPU Usage Per Cores |
Methods | Args | Efficiency |
---|---|---|
ShowGPU_ID | show | Returns GPU ID |
ShowGPUName | show | Returns GPU Name |
ShowGPULoad | show | Returns GPU Load |
ShowGPUFreeMemory | show | Returns GPU Free Memory |
ShowGPUUsedMemory | show | Returns GPU Used Memory |
ShowGPUTotalMemory | show | Returns GPU Total Memory |
ShowGPUTemperature | show | Returns GPU Temperature |
ShowGPU_UUID | show | Returns GPU UUID |
Methods | Args | Efficiency |
---|---|---|
ShowTotalRAM | show | Returns Total RAM Memory |
ShowAvailableRAM | show | Returns Available RAM Memory |
ShowUsedRAM | show | Returns Used RAM Memory |
ShowRAMPercentage | show | Returns RAM Percentage |
ShowTotalSwap | show | Returns Total Swap Memory |
ShowFreeSwap | show | Returns Free Swap Memory |
ShowUsedSwap | show | Returns Used Swap Memory |
ShowSwapPercentage | show | Returns Swap Percentage |
Methods | Args | Efficiency |
---|---|---|
ShowDrives | show | Returns Available Drives |
ShowParentDiskTotalMemory | show | Returns Parent Disk Total Memory |
ShowParentDiskUsedMemory | show | Returns Parent Disk Used Memory |
ShowParentDiskFreeMemory | show | Returns Parent Disk Free Memory |
ShowParentDiskPercentage | show | Returns Parent Disk Percentage |
ShowDiskInfo | show | Returns a Bunch Of Disk Information |
Methods | Args | Efficiency |
---|---|---|
ShowOsName | show | Returns Current Operating System's Name |
ShowOsType | show | Returns Operating System's Type |
ShowNodeName | show | Returns Node Name |
ShowOSRelease | show | Returns Operating System's Release Date |
ShowOSVersion | show | Returns Operating System's Version |
ShowWindowsOSFullName | show | Returns Windows OS Fullname |
ShowSystemName | show | Returns System's Name |
ShowSystemUptime | show | Returns System's Uptime |
ShowUserName | show | Returns Current Logined Username |
ShowSystemInformation | show , os_name | Returns a Bunch of System Information |
ShowPythonVersion | show | Returns Current Installed Python Version |
ShowBootTime | show | Returns System's Uptime |
Methods | Args | Efficiency |
---|---|---|
ConvertToAscii | show , text , colors , align , font | Convert Text To Ascii |
IsPath | show , pathaddr | Validates The System's Path |
GetAbsOutput | show , string | Runs The Text as a Python Command or Expression |
Args | Default Value | Details | Values |
---|---|---|---|
show | False | Gets The Admin Permission To Return The Output | True , False |
network_name | '' | Set The Value A Name of Your Saved Networks | The name of your Network |
network_request | True | Uses Network Request to Get Mac Address | True , False |
timeout | 5 | Send a Request Through Network in Time Per Second | 1 to ... |
link | '' | Set The Value a Url in String Format | "https://www.google.com/" |
os_name | "Windows" | Set The Name of Your Operating System | "Windows" , "Linux" |
text | '' | Set Anything in a String | "Anything" |
colors | [] | Use 2 colors for e.x ['green' , 'blue'] | ['color1' , 'color2'] |
align | "" | Align The Ascii Art You Want To Return | ("left") , ("center") , ("right") |
font | "" | Set The Font You Want To Use in Your Ascii Art | ("console") , ("block") , ("simpleBlock") , ("simple") , ("3d") , ("simple3d") , ("chrome") , ("huge") , ("grid") , ("pallet") , ("shade") , ("slick") , ("tiny") |
pathaddr | '' | Gets The System Local Address And Validates It | "C:\Users" |
string | '' | Gets a Python Command Or an Expression And Returns The Answer Or Output | "print("Hello World!")" or "2+2" |
Print Your Public IP Address
from PyScriptTools.tools import NetworkTools
network_obj = NetworkTools()
public_ip = network_obj.ShowPublicIP(show=True)
print(public_ip)
Output
89.39.108.150
Also You Can Print Your Public IP To asccii Art !!!
from PyScriptTools.tools import (NetworkTools , OtherTools)
network_obj = NetworkTools()
ascii_obj = OtherTools()
print(ascii_obj.ConvertToAscii(show=True , text=network_obj.ShowPublicIP(show=True) , colors=['green' , 'red'] , align='left' , font='shade'))
Output
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░██░░░██░░░░░░░████░░██░░░░░░░██░░░░██░░░██░░░░░░░██░░░████░░██░░
░█ █░█ █░░░░░░ █░█ █░░░░░░ █░░░█ █░█ █░░░░░░ █░░░█ ░█ █░
░ ██ ░ ███░░░░░░░░██░ ███░░░░░░░█░░░█░▌█░ ██ ░░░░░░░█░░░███░░█░▌█░
░█ █░░ █░░░░░░░░ █░░ █░░░░░░░█░░░█░ █░█ █░░░░░░░█░░░ █░█░ █░
░ ██ ░░░█ ░░░█░░████░░░█ ░░░█░░███░░ ██ ░ ██ ░░░█░░███░░███ ░ ██ ░
░░ ░░░░ ░░░░ ░░ ░░░ ░░░░ ░░ ░░░ ░░░ ░░░░ ░░ ░░ ░░░ ░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Wanna See Your CPU Information?
from PyScriptTools.tools import CPUTools
cpu_obj = CPUTools()
print(cpu_obj.ShowCPUType(show=True))
print(cpu_obj.ShowCPUPhysicalCores(show=True))
print(cpu_obj.ShowCPUTotalCores(show=True))
print(cpu_obj.ShowCPUMaxFrequency(show=True))
print(cpu_obj.ShowCPUMinFrequency(show=True))
print(cpu_obj.ShowCPUCurrentFrequency(show=True))
print(cpu_obj.ShowCPUTotalUsage(show=True))
print(cpu_obj.ShowCPUUsagePerCore(show=True))
Output
6
12
4104.00Mhz
0.00Mhz
4104.00Mhz
0.0%
Core 0 : 4.6%
Core 1 : 0.0%
Core 2 : 3.1%
Core 3 : 1.5%
Core 4 : 7.7%
Core 5 : 3.1%
Core 6 : 3.1%
Core 7 : 0.0%
Core 8 : 1.5%
Core 9 : 1.5%
Core 10 : 1.5%
Core 11 : 1.5%
How About GPU Information?
from PyScriptTools.tools import GPUTools
gpu_obj = GPUTools()
print(gpu_obj.ShowGPU_ID(show=True))
print(gpu_obj.ShowGPUName(show=True))
print(gpu_obj.ShowGPULoad(show=True))
print(gpu_obj.ShowGPUFreeMemory(show=True))
print(gpu_obj.ShowGPUUsedMemory(show=True))
print(gpu_obj.ShowGPUTotalMemory(show=True))
print(gpu_obj.ShowGPUTemperature(show=True))
print(gpu_obj.ShowGPU_UUID(show=True))
Output
0
NVIDIA GeForce RTX 2060
10.0%
5250.0
729.0MB
6144.0MB
49.0℃
GPU-fbe80806-8a49-abk8-ab8c-509d65993cb9
If You Want To See Your RAM Status Use These Codes Below
from PyScriptTools.tools import RAMTools
ram_obj = RAMTools()
print(ram_obj.ShowTotalRAM(show=True))
print(ram_obj.ShowAvailableRAM(show=True))
print(ram_obj.ShowUsedRAM(show=True))
print(ram_obj.ShowRAMPercentage(show=True))
print(ram_obj.ShowTotalSwap(show=True))
print(ram_obj.ShowFreeSwap(show=True))
print(ram_obj.ShowUsedSwap(show=True))
print(ram_obj.ShowSwapPercentage(show=True))
Output
31.90GB
24.55GB
7.34GB
23.00B%
36.65GB
26.97GB
9.67GB
26.40B%
And Many Many Methods That You Can Use To See Your System Information Like
from PyScriptTools.tools import SystemTools
system_obj = SystemTools()
print(system_obj.ShowOsName(show=True))
print(system_obj.ShowOSRelease(show=True))
print(system_obj.ShowOSVersion(show=True))
print(system_obj.ShowSystemUptime(show=True))
print(system_obj.ShowPythonVersion(show=True))
print(system_obj.ShowBootTime(show=True))
Output
Windows
10
10.0.22000
7:1:8:41
3.9.0
2022-02-22 00:19:29.929349