Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Definitive Windows version checker for Python

License

NotificationsYou must be signed in to change notification settings

RealGreenDragon/winvers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPi.org VersionPyPi.org LicensePyPi.org Py Versions

winvers

Definitive Windows version checker for Python

This module provides

  • A list of Windows versions constants (comparable between them)
  • A function to get the Windows OS version running on the machine

Compatibility

  • Python 2.7.x
  • Python 3.x and newer

Constants list

NO_WINWIN_10_19H2WIN_10_19H1WIN_10_1809WIN_10_1803WIN_10_1709WIN_10_1703WIN_10_1607WIN_10_1511WIN_10_1507WIN_10WIN_8_1WIN_8WIN_7_SP1WIN_7WIN_VISTA_SP1WIN_VISTAWIN_XP_X64_SP2WIN_XP_X64_SP1WIN_XP_X64WIN_XP_SP3WIN_XP_SP2WIN_XP_SP1WIN_XPWIN_2000WIN_SERVER_2016_1709WIN_SERVER_2016_1607WIN_SERVER_2016WIN_SERVER_2012_R2WIN_SERVER_2012WIN_SERVER_2008_R2WIN_SERVER_2008WIN_SERVER_2003_SP2WIN_SERVER_2003_SP1WIN_SERVER_2003

Example

import winversif winvers.get_version() >= winvers.WIN_VISTA:    print('Your OS is newer than Windows XP')if winvers.get_version() >= winvers.WIN_10:    print('Your OS is Windows 10')

Sources

About

Definitive Windows version checker for Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp