当前位置: 首页 > 科技观察

Github5月Top10Python项目

时间:2023-03-11 22:18:01 科技观察

五月刚刚过去,看到一篇介绍5月最火机器学习项目的文章,刚好看到MybridgeAI博客又发了一篇5月Python最火的Github开源项目也是近230个Python开源项目中最受欢迎的前十名。入选的十个项目包括Debug工具、删除Facebook文章、无限云盘存储空间、AI海军、并发计算工具、量化交易系统等。那就来看看这十个项目吧!第一名:PySnooper这是一个调试代码的工具,让你不再需要使用print来定位错误发生的位置和原因。目前有11000+颗星。PySnooper让你不用仔细选择哪些行需要打印信息。只需要在目标函数中添加一行装饰器,就可以很仔细的看到函数的运行状态,包括运行在哪一行,局部变量的变化等等。安装方法很简单,你可以使用pip或anaconda两种安装方式:$pipinstallpysnooper或$condainstall-cconda-forgepysnooper使用示例如下,首先你需要importpysnooper,然后想知道函数number_to_bits()的运行,添加@pysnooper即可。snoop()会做。importpysnooper@pysnooper.snoop()defnumber_to_bits(number):ifnumber:bits=[]whilenumber:number,remainder=divmod(number,2)bits.insert(0,remainder)returnbitselse:return[0]number_to_bits(6)得到的输入结果:Startingvar:..number=615:29:11.327032call4defnumber_to_bits(number):15:29:11.327032line5ifnumber:15:29:11.327032line6bits=[]Newvar:......bits=[]15:29:11.327032line7whilenumber:15:29:11.327032line8number,remainder=divmod(number,2)Newvar:......remainder=0Modifiedvar:..number=315:29:11.327032line9bits.insert(0,remainder)Modifiedvar:..bits=[0]15:29:11.327032line7whilenumber:15:29:11.327032line8number,remainder=divmod(number,2)Modifiedvar:..number=1Modifiedvar:..remainder=115:29:11.327032line9bits。插入(0,剩余)修改变量:..位=[1,0]15:29:11.327032line7whilenumber:15:29:11.327032line8number,remainder=divmod(number,2)修改变量:..number=015:29:11.327032line9bits.insert(0,remainder)Modifiedvar:..bits=[1,1,0]15:29:11.327032line7whilenumber:15:29:11.327032line10returnbits15:29:11.327032return10returnbitsReturnvalue:..[1,1,0]当然也可以只监听函数中的一部分代码,还有其他的用法。详情可以去它的Github上的链接:https://github.com/cool-RR/pysnooper?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more第二名:DeleteFB,一个删除Facebook文章的工具,目前有2224星。这个工具是基于Selenium实现的,所以笔者认为它比一些第三方APP更可靠,也不容易被Facebook屏蔽。几种安装方式:#1.InstallfromPyPIpipinstall--userdelete-facebook-posts#2.Clonerepoandrunpipinstall--user.#orpipinstall--usergit+https://github.com/weskerfoot/DeleteFB.git#3.SetupaPythonvirtualenv,activateit,andrunpipinstall-rrequirements.txt其他详细介绍可以在Github项目中找到。链接:https://github.com/weskerfoot/DeleteFB?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more第三名:无限云盘存储空间(UDS:UnlimitedDriveStorage)第三名是一个不占用空间但可以实现的方案可以将文件上传到谷歌云盘的工具,目前3232星。据其介绍,该功能主要是通过将二进制文件分解为base64格式来实现的。实现的功能有:上传文件到谷歌云盘,不占用存储空间;downloadanystoredfilestothelocalcomputer具体实现逻辑是:GoogleDocs不占用谷歌云盘空间。将二进制文件分解为base64编码的GoogleDoc,总会导致文件体积比源文件大,而base64编码的二进制数据与源文件的比例约为4:3。单个Google文档可以存储大约一百万字节,即大约710KB的base64编码数据。尝试使用多线程上传文件,但速度并没有明显提升。具体配置和使用方法可以查看其在Github上的介绍。链接:https://github.com/stewartmcgown/uds?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more第四名:eht-imaging这是一款用于无线电干涉测量的成像、分析、仿真软件。目前有5000+颗星。具体来说,一个Python模块可以模拟和操作VLBI数据并使用正则化最大似然法生成图像。链接:https://github.com/achael/eht-imaging?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more官方文档链接:https://achael.github.io/eht-imaging/第五名:YouTubeCommenter应用于Youtube,使用AI技术,一种根据视频标题生成评论的工具,目前有159颗星。作者也表示目前的项目只是作为参考,不能真正应用。感觉如果技术真的成熟了,这就是一支AI军队,可以快速控制某些视频的评论。另外,这里有作者的视频介绍和演示,需要科学上网和良好的英语听力。视频长约9分钟。简单看了下笔者的演示效果,确实离能用还差得很远。https://youtu.be/tY6SvZEic9k链接:https://github.com/HackerPoet/YouTubeCommenter?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more第六名:stackprinter这也是调试工具,目前有900+星。它会打印错误代码的内容和这段代码周围变量的值,这与友好的交互式调试器非常一致:错误代码的位置,附近变量的值,以及此函数调用这些参数的原因。安装方法很简单:关于pipinstallstackprinter更详细的介绍,可以查看其Github。链接:https://github.com/cknd/stackprinter?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more第7名:PykkaPykka是并发计算中actor模型的Python实现库,目前有763颗星。详情和使用示例请查看官方文档:https://www.pykka.org/en/latest/安装方法如下:pipinstallpykka链接:https://github.com/jodal/pykka?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more第八名:QTSSTM4是一个数字货币量化交易系统。目前有244颗星。这个系统对于初学者来说可能很复杂。作者推荐看下面三个资料:https://github.com/xiaoyao153379/BakTst_Org)https://github.com/xiaoyao153379/BakTst_Trd)https://github.com/xiaoyao153379/scripts参见Github详细介绍。链接:https://github.com/xiaoyao153379/QTSSTM4?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more第九名:Maildown,一个发送邮件的简单命令行界面,目前有521星。Maildown基于亚马逊的SES服务,每月可以免费发送62000封邮件,可以满足大部分人的需求。所以,在使用Maildown之前,你需要一个AmazonAWS账号,注册地址:https://aws.amazon.com/然后你还需要一个SES账号:https://docs.aws.amazon.com/ses/最新的/DeveloperGuide/request-production-access.html安装方式直接使用pipinstallmaildown更详细的介绍可以参考Github。链接:https://github.com/chris104957/maildown?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more第十名:modDetective这是一个按照修改时间排序文件的工具,目前有119星。目前,该工具仍在完善和优化中。据作者介绍,目前的搜索速度仍然是线性的,需要进一步优化。Github有一个简单演示的视频。链接:https://github.com/itsKindred/modDetective?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more