Simple Python Package to Gather and Show Your System Info.
Project description
PyScriptTools
Version 4.2.2
<div align="center">
<img src="https://img.shields.io/github/license/shervinbdndev/PyScriptTools.svg"></img>
</div>
<img src="https://img.shields.io/github/forks/shervinbdndev/PyScriptTools.svg"></img>
<img src="https://img.shields.io/github/stars/shervinbdndev/PyScriptTools.svg"></img>
<img src="https://img.shields.io/github/watchers/shervinbdndev/PyScriptTools.svg"></img>
<img src="https://img.shields.io/github/issues-pr/shervinbdndev/PyScriptTools.svg"></img>
<img src="https://img.shields.io/github/issues-pr-closed/shervinbdndev/PyScriptTools.svg"></img>
<img src="https://img.shields.io/github/downloads/shervinbdndev/PyScriptTools/total.svg"></img>
<img style="display:block;margin-left:auto;margin-right:auto;width:70%;" src="https://github-readme-stats.vercel.app/api/pin/?username=shervinbdndev&repo=PyScriptTools&theme=dracula"></img>
Under construction! Not ready for use yet! Currently experimenting and planning!
Developed by Shervin Badanara (shervinbdndev) on Github
<img src="https://forthebadge.com/images/badges/made-with-python.svg"></img>
Language and technologies used in This Project
WorkSpace
Update Your Interpreter
Windows / CMD
py -m pip install --upgrade pip
Linux / Terminal
python -m pip install --upgrade pip
Installation
Windows / CMD , Linux / Terminal
pip install PyScriptTools
or
py -m pip install PyScriptTools
Update Library
Windows / CMD , Linux / Terminal
pip install -U PyScriptTools
or
py -m pip install --upgrade PyScriptTools
Usage
Print Your Public IP Address
from PyScriptTools 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 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='center' , font='shade'))
Output
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░██░░░██░░░░░░░████░░██░░░░░░░██░░░░██░░░██░░░░░░░██░░░████░░██░░
░█ █░█ █░░░░░░ █░█ █░░░░░░ █░░░█ █░█ █░░░░░░ █░░░█ ░█ █░
░ ██ ░ ███░░░░░░░░██░ ███░░░░░░░█░░░█░▌█░ ██ ░░░░░░░█░░░███░░█░▌█░
░█ █░░ █░░░░░░░░ █░░ █░░░░░░░█░░░█░ █░█ █░░░░░░░█░░░ █░█░ █░
░ ██ ░░░█ ░░░█░░████░░░█ ░░░█░░███░░ ██ ░ ██ ░░░█░░███░░███ ░ ██ ░
░░ ░░░░ ░░░░ ░░ ░░░ ░░░░ ░░ ░░░ ░░░ ░░░░ ░░ ░░ ░░░ ░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Wanna See Your CPU Information?
from PyScriptTools 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 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 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 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
and many many Other methods . . . so
Enjoy :)
Package Uploaded in PYPI :Here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyScriptTools-4.2.2.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for PyScriptTools-4.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0173861655b70e257a22696922f5028ad15b2b714a61cc90aa45ec5e20854ab |
|
MD5 | d264ca7a34920e29381359ac0adade29 |
|
BLAKE2b-256 | a4ede4cf3a5911f53caf89d1a95e5c9fcc64c45ab0bd4326382865662c90569f |