Winfo


NameWinfo JSON
Version 0.0.4 PyPI version JSON
download
home_page
SummaryGet information about your windows system
upload_time2023-05-10 20:29:42
maintainer
docs_urlNone
authorBLUEAMETHYST Studios
requires_python
license
keywords python windows util information system
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

```Python
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

```Python
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

```Python
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:

```Python
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

```Python
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:

```Python
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

```Python
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:

```Python
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

```Python
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

```Python
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

```Python
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)

```Python
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](https://discord.gg/jDAGR26yXe)!

## License

<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/BLUEAMETHYST-Studios/Winfo">Winfo</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://blueamethyst.me">BLUEAMETHYST Studios</a> is licensed under <a href="http://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-SA 4.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1"></a></p>

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "Winfo",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "python,windows,util,information,system",
    "author": "BLUEAMETHYST Studios",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/67/3a/c6598454030e568abfff61580438fc7093edd50f60b25a9a803afdfdbd09/Winfo-0.0.4.tar.gz",
    "platform": null,
    "description": "# Winfo\r\nWinfo is a Python Library for getting System Stats (Made for Windows)\r\n\r\n## Features\r\nList of all features:\r\n### Processor Information\r\n\r\n- Get Brandname (Name you see in Taskmanager)\r\n- Get \"real\" name\r\n- Get Maximum Clock Speed\r\n- Get amount of cores\r\n- Get amount of threads\r\n- Get Architecture\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"I have an \" + Winfo.cpu.getbrandname())\r\nprint(\"It's real name is \" + Winfo.cpu.getrealname())\r\nprint(\"This monster works at \" + Winfo.cpu.maxclockspeed() + \" Ghz\")\r\nprint(\"It has\" + str(Winfo.cpu.cores()) + \" Cores and \" + str(Winfo.cpu.threads) + \" Threads\")\r\nprint(\"CPU Architecture: \" + Winfo.cpu.architecture())\r\n```\r\n\r\n### GPU Information\r\n\r\n- Get Brandname of GPU\r\n- Get Refresh Rate\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"My GPU is the \" + Winfo.gpu.getname())\r\nprint(\"I like my \" + Winfo.gpu.getRefreshRate() + \" Hz\")\r\n```\r\n\r\n### Memory Information\r\n\r\n- Get Memory manufacturer\r\n- Get total Memory capacity (MB)\r\n- Get total Memory capacity (GB)\r\n- Get Memory Speed\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"My Memory is from \" + Winfo.memory.getmanufacturer())\r\nprint(\"I've \" + Winfo.memory.getcapacityMB() + \" of memory or in GB: \" + Winfo.memory.getcapacityGB())\r\nprint(\"My memory works at \" + Winfo.memory.getSpeed() + \" Mhz\")\r\nprint(\"All my memory's Speed in a Python list: \" + Winfo.memory.getSpeedAll())\r\n```\r\n\r\n- If you want to list all Speed values in a prettier way, try this:\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprettylist = \"\"\r\n\r\nfor i in Winfo.memory.getSpeedAll():\r\n    prettylist = prettylist + i + \"\\n\"\r\n\r\nprint(prettylist)\r\n```\r\n\r\n- Instead of looking like this when printed:\r\n\r\n```\r\n[3000, 3000]\r\n```\r\n\r\n- It would now look like this:\r\n\r\n```\r\n3000\r\n3000\r\n\r\n```\r\n\r\n### Disk Information\r\n\r\n- List all connected disks (Returns them in a Python list)\r\n- 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\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"Here's a list of all my disks as a Python List: \" + str(Winfo.disk.listall()))\r\nprint(\"The size of my primary disk is: \" + Winfo.disk.getsize())\r\nprint(\"The size of my secondary disk is: \" + Winfo.disk.getsize(1))\r\n```\r\n\r\n- Like with the getSpeedAll, if you want to list all disks in a prettier way try this:\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprettylist = \"\"\r\n\r\nfor i in Winfo.disk.listall():\r\n    prettylist = prettylist + i + \"\\n\"\r\n\r\nprint(prettylist)\r\n```\r\n\r\n- Instead of looking like this when printed:\r\n\r\n```\r\n['Disk 0', 'Disk 1', 'Disk 2']\r\n```\r\n\r\n- It would now look like this:\r\n\r\n```\r\nDisk 0\r\nDisk 1\r\nDisk 2\r\n\r\n```\r\n### Ethernet Information (Adapters)\r\n\r\n- Get MAC Address (Please read disclaimer, which can be found in the source code of this project)\r\n- List all recognized Network Adapters\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"My MAC Address is: \" + Winfo.ethernet.macaddr())\r\nprint(\"List of all Network Adapters as a Python list: \" + str(Winfo.ethernet.listadapters()))\r\n```\r\n\r\n- Like with the Disklist and the getSpeedAll, you can make the list returned from Winfo.ethernet.listadapters() way prettier by doing this:\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprettylist = \"\"\r\n\r\nfor i in Winfo.ethernet.listadapters():\r\n    prettylist = prettylist + i + \"\\n\"\r\n\r\nprint(prettylist)\r\n```\r\n- Instead of looking like this when printed:\r\n\r\n```\r\n['Adapter 1', 'Adapter 2', 'Adapter 3']\r\n```\r\n\r\n- It would now look like this:\r\n\r\n```\r\nAdapter 1\r\nAdapter 2\r\nAdapter 3\r\n\r\n```\r\n### Internet Connection Information\r\n\r\n- Get public IP address\r\n- Check if you are connected to the internet\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"My IP is \" + Winfo.internet.publicIP())\r\n\r\nif Winfo.internet.isConnected():\r\n    print(\"I'm connected to the internet!\")\r\nelse:\r\n    print(\"I'm not connected to the internet :(\")\r\n```\r\n### Motherboard Information\r\n\r\n- Get Brandname of your Motherboard\r\n- Get Manufacturer of your Motherboard\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"My Motherboard is an \" + Winfo.motherboard.getname() + \" , made by \" + Winfo.motherboard.getmanufacturer())\r\n```\r\n\r\n### Audio Device Information\r\n\r\n- Get a list of all connected audio devices (also shows virtual devices)\r\n- Get a list of all the manufacturers of those\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"All my audio devices as a Python list: \" + str(Winfo.audio.listall()))\r\nprint(\"And the manufacturers: \"  + str(Winfo.audio.listmanufacturers()))\r\n```\r\n\r\n- Like all the other lists, you can make them look prettier, by doing it the same way, that was mentioned above\r\n\r\n### Software Information\r\n\r\n- Get current Windows version\r\n- Get current Windows release\r\n- Get device name\r\n- Get user name\r\n- Get where your system is located (Partition)\r\n\r\n```Python\r\nimport Winfo\r\n\r\nprint(\"I'm current running Windows \" + Winfo.software.system() + \" on version \" + Winfo.software.version())\r\nprint(\"I named my computer \" + Winfo.software.devicename())\r\nprint(\"I'm logged in as \" + Winfo.software.username())\r\nprint(\"My system partition is at \" + Winfo.software.where())\r\n```\r\n## Questions you might have:\r\n\r\n- Q: How can I install this library? A: pip install Winfo\r\n- Q: MacOS/Linux/BSD Support? A: Windows-only.\r\n- Q: What can I do with the code? A: Read the license (CC BY-SA 4.0)\r\n\r\n### If you've further questions, join our [discord](https://discord.gg/jDAGR26yXe)!\r\n\r\n## License\r\n\r\n<p xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dct=\"http://purl.org/dc/terms/\"><a property=\"dct:title\" rel=\"cc:attributionURL\" href=\"https://github.com/BLUEAMETHYST-Studios/Winfo\">Winfo</a> by <a rel=\"cc:attributionURL dct:creator\" property=\"cc:attributionName\" href=\"https://blueamethyst.me\">BLUEAMETHYST Studios</a> is licensed under <a href=\"http://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1\" target=\"_blank\" rel=\"license noopener noreferrer\" style=\"display:inline-block;\">CC BY-SA 4.0<img style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\" src=\"https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1\"><img style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\" src=\"https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1\"><img style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\" src=\"https://mirrors.creativecommons.org/presskit/icons/sa.svg?ref=chooser-v1\"></a></p>\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Get information about your windows system",
    "version": "0.0.4",
    "project_urls": null,
    "split_keywords": [
        "python",
        "windows",
        "util",
        "information",
        "system"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7590c72804e841ea1a4a64d3403da22181a424a04902a7520e45aec3c642584d",
                "md5": "527f965fc44676fab1d043f2c26ac3e9",
                "sha256": "574711d67644bc692989bce95a60e831778363267e0e85229bdadc3c87914d50"
            },
            "downloads": -1,
            "filename": "Winfo-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "527f965fc44676fab1d043f2c26ac3e9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9166,
            "upload_time": "2023-05-10T20:29:38",
            "upload_time_iso_8601": "2023-05-10T20:29:38.568415Z",
            "url": "https://files.pythonhosted.org/packages/75/90/c72804e841ea1a4a64d3403da22181a424a04902a7520e45aec3c642584d/Winfo-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "673ac6598454030e568abfff61580438fc7093edd50f60b25a9a803afdfdbd09",
                "md5": "0a6c7a11e9f3e90a563e8273914086fe",
                "sha256": "d4cf310b971ab9f3effdfef291ef2632a427d77a2fe4eeb04a59f9a2b6ca9349"
            },
            "downloads": -1,
            "filename": "Winfo-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "0a6c7a11e9f3e90a563e8273914086fe",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 8554,
            "upload_time": "2023-05-10T20:29:42",
            "upload_time_iso_8601": "2023-05-10T20:29:42.822151Z",
            "url": "https://files.pythonhosted.org/packages/67/3a/c6598454030e568abfff61580438fc7093edd50f60b25a9a803afdfdbd09/Winfo-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-10 20:29:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "winfo"
}
        
Elapsed time: 0.06398s