适用于 python 的 Windows 应用程序
项目描述
windowsapps - 用于管理 Windows 上已安装应用程序的 Python 库
安装
windowsapps要从PyPi 运行安装:
pip install windowsapps
用法
获取所有已安装的应用程序
import windowsapps
installed_applications = windowsapps.get_apps()
#Gives Dictionary of Application names along with their AppID
获取特定应用程序的名称、AppId
import windowsapps
name, appid = windowsapps.find_app('APPLICATION NAME')
#searches for the APPLICATION NAME and returns:-
#name = Name of the application.
#appid = AppId of the application
打开应用程序
import windowsapps
windowsapps.open_app('APPLICATION NAME')
#Will search for the application APPLICATION NAME and open it.
注意事项
此模块适用于 PC 上安装的所有应用程序,包括 Windows 应用商店应用程序。在 Windows 10 上完美运行。