No description
Find a file
2022-07-23 17:10:54 -07:00
.github/workflows Add actoins 2021-09-30 17:19:58 -07:00
examples redo how mac works 2020-01-18 12:55:19 -08:00
src Fix #3 2022-07-23 17:10:27 -07:00
tests Better linux support 2022-07-23 16:53:15 -07:00
.gitignore Added .gitignore and .nimble file. 2019-05-14 14:24:13 -07:00
LICENSE Add license 2021-09-30 12:06:02 -07:00
README.md Fix typo. 2022-06-20 14:31:23 -07:00
sysinfo.nimble Update readme. 2021-09-30 16:57:16 -07:00

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