适用于python的Windows应用程序
windowsapps的Python项目详细描述
windowsapps—用于管理Windows上已安装应用程序的Python库
安装
要从PyPi运行安装windowsapps
,请执行以下操作:
pip install windowsapps
使用
获取所有已安装的应用程序
^{pr2}$获取特定应用程序的名称AppId
importwindowsappsname,appid=windowsapps.find_app('APPLICATION NAME')#searches for the APPLICATION NAME and returns:-#name = Name of the application.#appid = AppId of the application
打开应用程序
importwindowsappswindowsapps.open_app('APPLICATION NAME')#Will search for the application APPLICATION NAME and open it.
注意事项
此库适用于电脑上安装的所有应用程序,包括Windows应用商店应用程序。 在Windows10上运行非常好。 使用json&subprocess模块工作。在
- 项目
标签: