kysdk.Sysinfo(3)
🌸 NAME 🌸
okay bestie, meet kysdk.Sysinfo — this is the kysdk.Sysinfo(3) page from the Library Functions Manual and it's literally your OS-info bestie 💖
kysdk.Sysinfo — 获取操作系统基础信息 (grabs all the OS's basic info, no cap) ✨
It's the class you hit up when you need:
- 操作系统架构信息 — the OS architecture info
- 操作系统名称 — the OS name
- 操作系统版本号 — the OS version number
- 操作系统激活状态 — the OS activation status
- 操作系统服务序列号 — the OS service serial number
- 内核版本号 — the kernel version number
- 当前登录用户的用户名 (Effect User) — the username of the currently logged-in user, a.k.a. the Effect User
- 操作系统项目编号名 — the OS project code name
- 操作系统项目子编号名 — the OS project sub-code name
- 操作系统产品标识码 — the OS product identifier code
- 操作系统宿主机的虚拟机类型 — the host machine's virtual machine type
- 操作系统宿主机的云平台类型 — the host machine's cloud platform type
- 判断当前镜像系统是否为 专用机 系统 — whether the current image system is a 专用机 system
- 系统版本号/补丁版本号 — the system version number / patch version number
- 系统当前显示屏幕,分辨率,系统支持分辨率 — the system's current display screen, resolution, and the resolutions the system supports
🦋 SYNOPSIS 🦋
Inherits kysdk.Base.
✨ Public Member Functions ✨
def __init__ (self)— the constructor, it's giving setup 🎀def getSystemArchitecture (self)— 获取操作系统架构信息 (get the OS architecture info)def getSystemName (self)— 获取操作系统名称 (get the OS name)def getSystemVersion (self, defatul=0)— 获取操作系统版本号 (get the OS version number)def getSystemActivationStatus (self)— 获取操作系统激活状态 (get the OS activation status)def getSystemSerialNumber (self)— 获取操作系统服务序列号 (get the OS service serial number)def getSystemKernelVersion (self)— 获取内核版本号 (get the kernel version number)def getSystemEffectUser (self)— 获取当前登录用户的用户名(Effect User) (get the current logged-in user's username)def getSystemProjectName (self)— 获取操作系统项目编号名 (get the OS project code name)def getSystemProjectSubName (self)— 获取操作系统项目子编号名 (get the OS project sub-code name)def getSystemProductFeatures (self)— 获取操作系统产品标识码 (get the OS product identifier code)def getSystemHostVirtType (self)— 获取操作系统宿主机的虚拟机类型 (get the host machine's virtual machine type)def getSystemHostCloudPlatform (self)— 获取操作系统宿主机的云平台类型 (get the host machine's cloud platform type)def getSystemOSVersion (self)— 获取系统版本号 (get the system version number)def getSystemUpdateVersion (self)— 获取补丁版本号 (get the patch version number)def getSystemIsZYJ (self)— 判断当前镜像系统是否为 专用机 系统 (figure out if the current image system is a 专用机 system)
🌈 Additional Inherited Members 🌈
That's it. That's the whole section. Nothing extra listed here 🙈 (the page just drops the heading and moves on, iconic behaviour honestly)
📖 Detailed Description 📖
获取操作系统基础信息. So basically this class is your OS-info oracle 🧚 — it's the one you call when you wanna know 操作系统架构信息 (the OS architecture info), 操作系统名称 (the OS name), 操作系统版本号 (the OS version number), 操作系统激活状态 (the OS activation status), 操作系统服务序列号 (the OS service serial number), 内核版本号 (the kernel version number), 当前登录用户的用户名(Effect User) (the username of whoever's logged in right now — that's the Effect User, iykyk), 操作系统项目编号名 (the OS project code name), 操作系统项目子编号名 (the OS project sub-code name), 操作系统产品标识码 (the OS product identifier code), 操作系统宿主机的虚拟机类型 (the host machine's virtual machine type), 操作系统宿主机的云平台类型 (the host machine's cloud platform type), 判断当前镜像系统是否为 专用机 系统 (whether the current image system is a 专用机 system), 系统版本号/补丁版本号 (the system version number / patch version number), and 系统当前显示屏幕,分辨率,系统支持分辨率 (the system's current display screen, its resolution, and the resolutions it supports). All of it. In one place. Slay 💅
🔥 Member Function Documentation 🔥
def kysdk.Sysinfo.getSystemActivationStatus ( self)
获取操作系统激活状态 — so, is this OS activated or not? 👑
Returns — a number, and every number has lore:
2— 已过期 (expired, RIP 😭)0— 未激活,处于试用期 (not activated, it's in the trial period)1— 已激活 (activated, we love to see it ✨)-1— 接口内部错误 (internal error inside the interface 💀)
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemArchitecture ( self)
获取操作系统架构信息 — get the OS architecture info 🏗️
Returns — 操作系统架构信息 (the OS architecture info).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemEffectUser ( self)
获取当前登录用户的用户名(Effect User) — who's logged in rn? This tells you 👀
Returns — 当前登录用户的用户名(Effect User) (the username of the currently logged-in user, the Effect User).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemHostCloudPlatform ( self)
获取操作系统宿主机的云平台类型 — what cloud platform is this host chilling on? ☁️
Returns — if it fails you get NULL; if it works you get a string. The string looks like this: [none, huawei], where none means it's running on a physical machine or in an unknown cloud platform environment, and any other string means a different cloud platform 🫶
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemHostVirtType ( self)
获取操作系统宿主机的虚拟机类型 — what kind of virtual machine is the host running as? 🧚
Returns — 操作系统宿主机的虚拟机类型 (the host machine's virtual machine type), and the types are:
[none, qemu, kvm, zvm, vmware, hyper-v, orcale virtualbox, xen, bochs, \ uml, parallels, bhyve, qnx, arcn, openvz, lxc, lxc-libvirt, systemd-nspawn,\ docker, podman, rkt, wsl]
where none means it's running on a physical machine environment, and every other string is a specific virtual environment type ✨
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemIsZYJ ( self)
判断当前镜像系统是否为 专用机 系统 — is this image system a 专用机 system or not? 🕵️
Returns — true means yes, false means no.
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemKernelVersion ( self)
获取内核版本号 — kernel version, coming right up 🐧
Returns — 内核版本号 (the kernel version number).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemName ( self)
获取操作系统名称 — what's this OS called? 🏷️
Returns — 操作系统名称 (the OS name).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemOSVersion ( self)
获取系统版本号 — system version number, periodt 📌
Returns — 系统版本号 (the system version number).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemProductFeatures ( self)
获取操作系统产品标识码 — the OS product identifier code 💳
Returns — a flag code:
0000— 信息异常 (info is abnormal, something's off 😭)0001— 仅PC特性 (PC features only)0010— 仅平板特性 (tablet features only)0011— 支持平板与PC特性 (supports both tablet and PC features 👑)
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemProjectName ( self)
获取操作系统项目编号名 — the OS project code name 🎀
Returns — 操作系统项目编号名 (the OS project code name).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemProjectSubName ( self)
获取操作系统项目子编号名 — the OS project sub-code name, the sequel 🦋
Returns — 操作系统项目子编号名 (the OS project sub-code name).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemSerialNumber ( self)
获取操作系统服务序列号 — the OS service serial number, your OS's little ID card 🪪
Returns — 操作系统服务序列号 (the OS service serial number).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemUpdateVersion ( self)
获取补丁版本号 — patch version number, the glow-up number 🌟
Returns — 补丁版本号 (the patch version number).
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
def kysdk.Sysinfo.getSystemVersion ( self, defatul = 0)
获取操作系统版本号 — the OS version number, and you get to pick how much detail you want 👑
Parameters — defatul — 0 gets you the 简略版本号 (abbreviated version number), 1 gets you the 详细版本号 (detailed version number).
Returns — 操作系统版本号 (the OS version number):
defatul = 0— 获取简略版本号 (gets the abbreviated version number)defatul = 1— 获取详细版本号 (gets the detailed version number)
References — kysdk.SessionBase.interface, and kysdk.Base.interface.
🫶 Author 🫶
Generated automatically by Doxygen for kysdk.py from the source code. (not a human, not a girlboss, just Doxygen doing its thing 💅)
and that's the whole page, bestie 🎀 it came from My Project and it's dated Thu Sep 21 2023 — kysdk.Sysinfo(3), out 🌸✨
📦 where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 · LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system-dev 3.0.1.2-0ubuntu1 · LGPL-3.0-only
- ubuntu stonking: libkysdk-system-dev 3.0.1.3-0ubuntu1 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms