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
- Get Architecture
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() + " Ghz")
print("It has" + str(Winfo.cpu.cores()) + " Cores and " + str(Winfo.cpu.threads) + " Threads")
print("CPU Architecture: " + Winfo.cpu.architecture())
GPU Information
- Get Brandname of GPU
- Get Refresh Rate
import Winfo
print("My GPU is the " + Winfo.gpu.getname())
print("I like my " + Winfo.gpu.getRefreshRate() + " Hz")
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")
print("All my memory's Speed in a Python list: " + Winfo.memory.getSpeedAll())
- If you want to list all Speed values in a prettier way, try this:
import Winfo
prettylist = ""
for i in Winfo.memory.getSpeedAll():
prettylist = prettylist + i + "\n"
print(prettylist)
- Instead of looking like this when printed:
[3000, 3000]
- It would now look like this:
3000
3000
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))
- Like with the getSpeedAll, 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
Ethernet Information (Adapters)
- Get MAC Address (Please read disclaimer, which can be found in the source code of this project)
- List all recognized Network Adapters
import Winfo
print("My MAC Address is: " + Winfo.ethernet.macaddr())
print("List of all Network Adapters as a Python list: " + str(Winfo.ethernet.listadapters()))
- Like with the Disklist and the getSpeedAll, you can make the list returned from Winfo.ethernet.listadapters() way prettier by doing this:
import Winfo
prettylist = ""
for i in Winfo.ethernet.listadapters():
prettylist = prettylist + i + "\n"
print(prettylist)
- Instead of looking like this when printed:
['Adapter 1', 'Adapter 2', 'Adapter 3']
- It would now look like this:
Adapter 1
Adapter 2
Adapter 3
Internet Connection Information
- Get public IP address
- Check if you are connected to the internet
import Winfo
print("My IP is " + Winfo.internet.publicIP())
if Winfo.internet.isConnected():
print("I'm connected to the internet!")
else:
print("I'm not connected to the internet :(")
Motherboard Information
- Get Brandname of your Motherboard
- Get Manufacturer of your Motherboard
import Winfo
print("My Motherboard is an " + Winfo.motherboard.getname() + " , made by " + Winfo.motherboard.getmanufacturer())
Audio Device Information
- Get a list of all connected audio devices (also shows virtual devices)
- Get a list of all the manufacturers of those
import Winfo
print("All my audio devices as a Python list: " + str(Winfo.audio.listall()))
print("And the manufacturers: " + str(Winfo.audio.listmanufacturers()))
- Like all the other lists, you can make them look prettier, by doing it the same way, that was mentioned above
Software Information
- Get current Windows version
- Get current Windows release
- Get device name
- Get user name
- Get where your system is located (Partition)
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())
print("My system partition is at " + Winfo.software.where())
Questions you might have:
- Q: How can I install this library? A: pip install Winfo
- 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
Metadata
Release files for Winfo 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Winfo-0.0.4.tar.gz | 8.6 kB | Without provenance | Details for Winfo-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Winfo-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for Winfo-0.0.4-py3-none-any.whl |
Total release size: 17.7 kB
Release files / Winfo-0.0.4.tar.gz
| Download URL | Winfo-0.0.4.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4cf310b971ab9f3effdfef291ef2632a427d77a2fe4eeb04a59f9a2b6ca9349
|
|
BLAKE2b-256 checksum How to use checksums |
673ac6598454030e568abfff61580438fc7093edd50f60b25a9a803afdfdbd09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Release files / Winfo-0.0.4-py3-none-any.whl
| Download URL | Winfo-0.0.4-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
574711d67644bc692989bce95a60e831778363267e0e85229bdadc3c87914d50
|
|
BLAKE2b-256 checksum How to use checksums |
7590c72804e841ea1a4a64d3403da22181a424a04902a7520e45aec3c642584d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for Winfo 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.