Skip to main content

一个获取macOS电脑信息的Python包

Project description

sysinfo-collector

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

功能特点

  • 获取系统基本信息(操作系统、版本、架构等)
  • 获取CPU信息(核心数、频率、使用率等)
  • 获取内存信息(总内存、可用内存、使用率等)
  • 获取磁盘信息(分区、总容量、已用空间、可用空间、使用率等)

安装方法

pip install sysinfo-collector

使用示例

from sysinfo import get_system_info, get_cpu_info, get_memory_info, get_disk_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)

# 获取磁盘信息
disk_info = get_disk_info()
print("磁盘信息:", disk_info)

开发和贡献

  1. 克隆仓库: git clone https://gitee.com/KAERBluetooth/my_uv_project.git
  2. 安装依赖: uv install
  3. 运行测试: pytest

欢迎提交issue和pull request。

贡献者

version

View at:
https://pypi.org/project/sysinfo-collector/0.2.3/
https://pypi.org/project/sysinfo-collector/0.2.2/
https://pypi.org/project/sysinfo-collector/0.2.1/
https://pypi.org/project/sysinfo-collector/0.2.0/
https://pypi.org/project/sysinfo-collector/0.1.0/

许可证

本项目使用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.2.4.tar.gz (3.8 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.2.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sysinfo_collector-0.2.4.tar.gz
Algorithm Hash digest
SHA256 76a459fb35bdc749ecff5ad569f070f9b75c63737d53451eb9d9d1ed86e8d4c8
MD5 84ff22114c9d8ad4b4338ff2a814cbc4
BLAKE2b-256 f7e5593f987e637a2dbeb3ac9dd2a7742281c78d5235c9bb850943e96280e5ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sysinfo_collector-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 97bf46165c60188634bfbec5fe1f9df13a46ccd3e717d007b67cceb2df6b16c9
MD5 d0b2ac345cbbb21f6ea6b35861345646
BLAKE2b-256 fec4ae2be84406206c7ff89975ee2fc84c00fda0d881848d20b7af69b97a44da

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