Skip to main content

SystemInfo Package

This Python package provides a simple and easy-to-use way to gather system information, including details about the operating system, CPU, GPU (if available), and disk usage. The package uses popular Python libraries such as platform, psutil, socket, cpuinfo, and GPUtil to retrieve and present the system data.

Installation

pip install systeminfo-python3

Usage

To use the package, you can follow these steps:

  1. Import the SystemInfo class from the package:
from Systeminfo.system_Info import SystemInfo
  1. Create an instance of the SystemInfo class:
system_info = SystemInfo()
  1. Get all the information using the get_all_info() method:
all_info = system_info.get_all_info()
  1. Print the system information:
print("===== System Information =====")
for key, value in all_info["System Information"].items():
    print(f"{key}: {value}")
  1. Print the CPU information:
print("\n===== CPU Information =====")
for key, value in all_info["CPU Information"].items():
    print(f"{key}: {value}")
  1. Print the GPU information if available:
if "GPU Information" in all_info:
    print("\n===== GPU Information =====")
    for gpu_info in all_info["GPU Information"]:
        for key, value in gpu_info.items():
            print(f"{key}: {value}")
  1. Print the disk information:
print("\n===== Disk Information =====")
for disk_info in all_info["Disk Information"]:
    for key, value in disk_info.items():
        print(f"{key}: {value}")
    print("-------")

Example

Here's an example of how to use the package to retrieve and print system information:

from Systeminfo.system_Info import SystemInfo

# Create an instance of the SystemInfo class
system_info = SystemInfo()

# Get all the information using the SystemInfo class
all_info = system_info.get_all_info()

# Print the system information
print("===== System Information =====")
for key, value in all_info["System Information"].items():
    print(f"{key}: {value}")

# Print the CPU information
print("\n===== CPU Information =====")
for key, value in all_info["CPU Information"].items():
    print(f"{key}: {value}")

# Print the GPU information if available
if "GPU Information" in all_info:
    print("\n===== GPU Information =====")
    for gpu_info in all_info["GPU Information"]:
        for key, value in gpu_info.items():
            print(f"{key}: {value}")

# Print the disk information
print("\n===== Disk Information =====")
for disk_info in all_info["Disk Information"]:
    for key, value in disk_info.items():
        print(f"{key}: {value}")
    print("-------")

Dependencies

The package relies on the following external Python libraries:

  • platform: Provides access to the underlying platform's identifying data.
  • psutil: Offers system and process-related information.
  • socket: Provides access to network communication capabilities.
  • cpuinfo: Provides information about the CPU (Central Processing Unit).
  • GPUtil: Allows retrieving GPU (Graphics Processing Unit) information (optional).

Compatibility

The package is compatible with Python 3.9 and above.

License

This package is released under the MIT License. You are free to use, modify, and distribute it as per the terms of the license.

Release files for systeminfo-python3 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for systeminfo-python3 0.1.1
File Size Uploaded
systeminfo-python3-0.1.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for systeminfo-python3 0.1.1
File Interpreter ABI Platform
systeminfo_python3-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / systeminfo-python3-0.1.1.tar.gz

Download URL systeminfo-python3-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
458b8618def1616d5f45b59985bd77b331e394962b07f92f503f6ad1acdb069e
BLAKE2b-256 checksum
How to use checksums
504723661db6122ff8d1086ad8d3544748c53d626764fb3a6c1a937cfc20576b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / systeminfo_python3-0.1.1-py3-none-any.whl

Download URL systeminfo_python3-0.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
496fba49f9c107304b98d3229a4f767306eaab2ba2fdebc8b58db44343841c54
BLAKE2b-256 checksum
How to use checksums
9035f0b20a475d614f4882f4f22383dd70146e470abf4a1d7000505bc1ffe696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page