Get information about your windows system
Project description
Winfo
Winfo is a Python Library for getting System Stats (Made for Windows)
Features
List of all features:
Processor Information
- Get Brandname (Name you see in Taskmanager)
- Get "real" name
- Get Maximum Clock Speed
- Get amount of cores
- Get amount of threads
import Winfo
print("I have an " + Winfo.cpu.getbrandname())
print("It's real name is " + Winfo.cpu.getrealname())
print("This monster works at " + Winfo.cpu.MaxClockSpeed())
print("It has" + str(Winfo.cpu.cores()) + " Cores and " + str(Winfo.cpu.threads) + " Threads")
GPU Information
- Get Brandname of GPU
import Winfo
print("My GPU is the " + Winfo.gpu.getname())
Memory Information
- Get Memory manufacturer
- Get total Memory capacity (MB)
- Get total Memory capacity (GB)
- Get Memory Speed
import Winfo
print("My Memory is from " + Winfo.memory.getmanufacturer())
print("I've " + Winfo.memory.getcapacityMB() + " of memory or in GB: " + Winfo.memory.getcapacityGB())
print("My memory works at " + Winfo.memory.getSpeed() + " Mhz")
Disk Information
- List all connected disks (Returns them in a Python list)
- Get Disk Size (Capacity) of disk 0, if you want to get the size of another disks set it's number as the index argument in the function
import Winfo
print("Here's a list of all my disks as a Python List: " + str(Winfo.disk.listall()))
print("The size of my primary disk is: " + Winfo.disk.getsize())
print("The size of my secondary disk is: " + Winfo.disk.getsize(1))
- BONUS TIP! If you want to list all disks in a prettier way try this:
import Winfo
prettylist = ""
for i in Winfo.disk.listall():
prettylist = prettylist + i + "\n"
print(prettylist)
- Instead of looking like this when printed:
['Disk 0', 'Disk 1', 'Disk 2']
- It would now look like this:
Disk 0
Disk 1
Disk 2
Software Information
- Get current Windows version
- Get current Windows release
- Get device name
- Get user name
import Winfo
print("I'm current running Windows " + Winfo.software.system() + " on version " + Winfo.software.version())
print("I named my computer " + Winfo.software.devicename())
print("I'm logged in as " + Winfo.software.username())
Questions you might have:
- Q: Is this on PyPi?, A: Current not but soon
- Q: How can I install this then?, A: By cloning the repo in to this directory "C:\Users\USERNAME\AppData\Local\Programs\Python\Python311\Lib"
- Q: MacOS/Linux/BSD Support? A: Windows-only.
- Q: What can I do with the code? A: Read the license (CC BY-SA 4.0)
If you've further questions, join our discord!
License
Winfo by BLUEAMETHYST Studios is licensed under CC BY-SA 4.0
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
Winfo-0.0.1.1.tar.gz
(5.1 kB
view hashes)