2 Star 12 Fork 1

Lensit / lensi_cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Lensi

简介

  • Lensi安装pip install lensi
  • Lensi CLI为360 qq scoop choco winget hippo的聚合命令行工具。
  • Lensi 现更新到0.1.3 (更新内容: Aria2代理下载,批量下载,Scoop json代理替换)
  • 这有可能是Lensi_CLI的最后一个版本了 /(ㄒoㄒ)/~~
  • PS. 本人即将面临中考,暂时没有长期维护打算
  • Github地址:https://github.com/jerryluosuper/lensi_cli

软件特色

  • 聚合搜索:解决在Scoop,Choco,Winget中的选择困难症
  • Scoop 增强:自动解析buckets,加快搜索速度;github等网站自动替换为镜像站,加快下载速度
  • 360,QQ 软件源:官方软件,安全有保障;摆脱下载XX卫士的烦恼
  • 卸载软件:支持所有软件,不仅仅是由lensi安装的,并支持清除文件夹
  • 更新软件:一键更新所有由lensi下载的软件
  • 批量安装:创建一个txt,其中为如下格式,即可批量安装(lensi list out可以导出app_list):
    <app_name1> <app_source1>
    <app_name2> <app_source2>
    ...         ...

P.S.

  • 若您想为lensi添加更多的源,请注意最好需要如下函数:
    def xx_search(app_name,lmmit_num,...):
        return search_list[list1,list2]
    	# list格式:app_name_real(软件真实名称),app_version,app_detail,app_homepage(软件官网),app_id(没有则为app_name_real),app_icon,fuzz.partial_ratio(app_name,app_name_real),app_source
    def xx_info(app_name):
        return info_text

使用方法

主要命令:

  • (简介) [具体参数(可选参数) (备注)
  • clean:(清除Download缓存) lensi clean
  • download:(只下载文件,并打开文件夹) lensi download <app_name> (<app_source>)
  • info:(显示软件的详细信息) lensi info <app_name> (<app_source>)
  • init:(消除整个lensi文件夹) lensi init
  • install:(正常安装软件) lensi install <app_name> (<app_source>)
  • list:(显示由lensi安装的软件) lensi list (<list_options>) (lensi list out将在当前目录下生成安装软件列表,lensi install app_list.txt即可以批量安装)
  • search:(搜索功能,聚合搜索) lensi search <app_name> (<app_source> <limmit_num>)
  • set:(一些设置) lensi set <set_options> (具体设置看下文,lensi set显示所有设置)
  • uninstall:(卸载软件(软件范围是电脑中的所有软件)) lensi uninstall <app_name>
  • upgrade:(更新软件(只限通过lensi下载安装的软件)) lensi upgrade (<app_name>) (其中lensi upgrade代表更新所有)
  • 各个命令具体参数使用help可查看

设置(备注):

  • qq_num = 1(qq搜索个数,默认1)
  • 360_num = 1(360搜索个数,默认1)
  • Scoop_num = 1(Scoop搜索个数,默认1)
  • Winget_num = 1(Winet搜索个数,默认1)
  • Choco_num = 1(Choco搜索个数,默认1)
  • DAI(DeletedAfterInstalled) = True 下载安装包后自动删除,默认开启
  • SO(SimplyOpen) = False 安装包只是简单的打开,默认关闭,若开启则只是简单的打开下载的文件
  • ES(EnableScoop) = True Scoop搜索是否开启,默认开启,运行时会检测是否装有Scoop,若没有则自动调为False
  • EC(EnableChoco) = True Choco搜索是否开启,默认开启,运行时会检测是否装有Choco,若没有则自动调为False
  • EW(EnableWinget) = True Winget搜索是否开启,默认开启(Choco,Winget开启可能会延长搜索时间)
  • SIP(ScoopInstallPath) = D:\Scoop Scoop安装路径,默认在“ D:\Scoop”(lensi会自动解析Scoop\buckets文件夹,加快Scoop搜索速度)
  • NI(NormalInstall) = qq lensi install <app_name>不加app_source的默认源,默认qq The available source is : qq(q) 360(b) scoop(s) hippo(h) choco(c) winget(w)
  • WT(Waittime) = 3 搜索等待时间,默认3,若为0或负数则为等待所有源搜索完毕
  • HAF(HowAccurateFuzzywuzzy) = 80 更新,卸载所用检测是否存在这个软件的参数,默认80,可以调到80以上更加准确,但有可能查找不到
  • EAD(EnableAria2Download) = False 使用Aria2代理下载,默认关闭
  • AP(Aria2Path) = D:\Scoop\shims\aira2c.exe Aria2安装地址,默认为由Scoop安装的地址
  • CDS(CreateDesktopShotcut) = True 对于携带版的软件(下载文件后缀为.zip)是否创建桌面快捷方式,默认开启
  • CSS(CreateStartmenuShotcut) = False 对于携带版的软件(下载文件后缀为.zip)是否创建开始菜单快捷方式(同时创建Lensi Apps文件夹),默认关闭
  • TR(ToReplace)=github.com
  • RT(ReplaceTo)=hub.fastgit.xyz 安装Scoop的软件自动讲其中的TR替换为RT,默认将github.com替换为hub.fastgit.xyz
MIT License Copyright (c) 2022 Lensit Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Lensi CLI是一款支持360 qq scoop choco winget hippo的聚合搜索包管理命令行工具。 展开 收起
Python
MIT
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/lensit/lensi_cli.git
git@gitee.com:lensit/lensi_cli.git
lensit
lensi_cli
lensi_cli
master

搜索帮助