sysinfo

System info, CPU, OS, Memory

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.2.1
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-09-01 07:17

Tags

Authors

  • Andre von Houck

Installation

nimble install sysinfo
choosenim install sysinfo
git clone https://github.com/treeform/sysinfo

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
sysinfo - - - - - - -

Dependencies

Package Version Optional
nim >= 1.1.1 No

Source

Repository https://github.com/treeform/sysinfo
Homepage https://github.com/treeform/sysinfo
Registry Source nimble_official

README

Sysinfo

nimble install sysinfo

Github Actions

API reference

This library has no dependencies other than the Nim standard library.

About

Cross-platform way to find common system resources like, os, os version, machine name, cpu stats...

Supported platforms:

  • Windows
  • macOS
  • Linux

Example:

import sysinfo
echo "getMachineModel: ", getMachineModel()
echo "getMachineName: ", getMachineName()
echo "getMachineManufacturer: ", getMachineManufacturer()
echo "getOsName: ", getOsName()
echo "getOsVersion: ", getOsVersion()
echo "getCpuName: ", getCpuName()
echo "getCpuGhz: ", getCpuGhz(), "GHz"
echo "getCpuManufacturer: ", getCpuManufacturer()
echo "getNumCpus: ", getNumCpus()
echo "getNumTotalCores: ", getNumTotalCores()
echo "getTotalMemory: ", getTotalMemory().float / 1024 / 1024 / 1024, "GB"
echo "getFreeMemory: ", getFreeMemory().float / 1024 / 1024 / 1024, "GB"
echo "getGpuName: ", getGPUName()
echo "getGpuDriverVersion: ", getGpuDriverVersion()
echo "getGpuMaxFPS: ", getGpuMaxFPS()
getMachineModel: Z270P-D3
getMachineName: DESKTOP-V5LP96H
getMachineManufacturer: Gigabyte Technology Co., Ltd.
getOsName: Microsoft Windows 10 Pro
getOsVersion: 10.0.15063
getCpuName: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
getCpuGhz: 4.001GHz
getCpuManufacturer: GenuineIntel
getNumCpus: 1
getNumTotalCores: 8
getTotalMemory: 15.96039962768555GB
getFreeMemory: 0.008630607277154923GB
getGpuName: NVIDIA GeForce GTX 1080
getGpuDriverVersion: 25.21.14.1771
getGpuMaxFPS: 143