Skip to main content

一个获取电脑系统信息的Python包

Project description

sysinfo-collector

一个获取电脑系统信息的Python包。可以获取系统基本信息、CPU信息和内存信息。

功能特点

  • 获取系统基本信息(操作系统、版本、架构等)
  • 获取CPU信息(核心数、频率、使用率等)
  • 获取内存信息(总内存、可用内存、使用率等)

安装方法

pip install sysinfo-collector

使用示例

from sysinfo import get_system_info, get_cpu_info, get_memory_info

# 获取系统基本信息
system_info = get_system_info()
print("系统信息:", system_info)

# 获取CPU信息
cpu_info = get_cpu_info()
print("CPU信息:", cpu_info)

# 获取内存信息
memory_info = get_memory_info()
print("内存信息:", memory_info)

开发和贡献

  1. 克隆仓库: git clone https://github.com/yourusername/sysinfo-collector.git
  2. 安装依赖: uv install
  3. 运行测试: pytest

欢迎提交issue和pull request。

许可证

本项目使用MIT许可证,详情见LICENSE文件。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sysinfo_collector-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sysinfo_collector-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file sysinfo_collector-0.1.0.tar.gz.

File metadata

  • Download URL: sysinfo_collector-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for sysinfo_collector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 351f5ddd67f7005e689b7f47d5c8bd5fee8212f04f997a3b49431cd3db8ed630
MD5 feeb653cac8327aacae4dba7dbeb2a0c
BLAKE2b-256 45a1bf2903ca76578fcf3242c74d051dcc1d241849568615f9a7582772cc801a

See more details on using hashes here.

File details

Details for the file sysinfo_collector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sysinfo_collector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f94d18eb66b7da7096a6e12f39cf592825205910c2256fd17f9184f63f7f8b5f
MD5 7b371c3ecbd82f1f0d5e58c2a1d3f800
BLAKE2b-256 1b80aa59575a265bb2d5c011ebd374922ddf98a513fcdd57a35e08cc5ba4e681

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page