GitHub上Python实用有趣项目合集(一)-最后一个不信你不爱

522 阅读4分钟

rembg

Star 3.1k Watch 58 Fork 518

github.com/danielgatis…

六行代码实现抠图,简单易懂

简单实用的删除图像背景/抠图工具
在这里插入图片描述

#方式一:Input and output as bytes
from rembg import remove

input_path = 'input.png'
output_path = 'output.png'

with open(input_path, 'rb') as i:
    with open(output_path, 'wb') as o:
        input = i.read()
        output = remove(input)
        o.write(output)


#方式二:Input and output as a PIL image
from rembg import remove
from PIL import Image

input_path = 'input.png'
output_path = 'output.png'

input = Image.open(input_path)
output = remove(input)
output.save(output_path)


#方式三:Input and output as a numpy array
from rembg import remove
import cv2

input_path = 'input.png'
output_path = 'output.png'

input = cv2.imread(input_path)
output = remove(input)
cv2.imwrite(output_path, output)

Python

Star 134.9k Watch 6.0k Fork 35.4k

github.com/TheAlgorith…

用 Python 实现所有算法

该项目是用 Python 语言实现各种算法的集合,主要用于教育和学习。包括搜索、排序、数据结构、机器学习、密码、神经网络等方面
在这里插入图片描述

Hitomi-Downloader

Star 7.9k Watch 142 Fork 943 中文

github.com/KurtBestor/…

Python 写的桌面下载工具

界面简单使用方便,拥有下载限速、BT 种子、自动提取网页视频等功能,支持下载国内多个视频网站的内容
在这里插入图片描述

30-Days-Of-Python

Star 9.4k Watch 483 Fork 2.2k

github.com/Asabeneh/30…

免费、零基础的 Python 教程。

保姆级 Python 教程内容虽为英文,但问题不大请放心食用

在这里插入图片描述在这里插入图片描述

Tkinter-Designer

Star 3.9k Watch 46 Fork 335

github.com/ParthJadhav…

用拖动的方式创建漂亮的桌面软件

它的操作十分简单,首先在 Figma 网站通过拖拽的方式构建应用,然后把设计好的应用地址和 token 输入到 Tkinter-Designer 自动生成 Python 代码,最后就能得到界面简洁大方的桌面应用啦。不用代码做出基于 tkinter 的桌面应用
在这里插入图片描述

moviepy

Star 9.2k Watch 243 Fork 1.2k

github.com/Zulko/movie…

用于处理视频的 Python 库

它支持视频剪辑、自定义效果、视频合成、格式转化、插入文字等功能。专于注视频但不局限于此,还支持处理音频和 GIF 图片。虽然现在视频剪辑的工具很丰富,但如果要批量处理视频,用 Python+moviepy 写个脚本应该可以一劳永逸,节省时间
在这里插入图片描述

bigdata_analyse

Star 1.7k Watch 33 Fork 338 中文

github.com/TurboWay/bi…

大数据分析实战项目的集合

该项目包含了淘宝、租房、招聘等数据的分析实例,不仅有 Python、SQL、HQL 的实例代码,还附上了数据集下载地址。想学习大数据的同学们,万事俱备就差你来学了
在这里插入图片描述

Pillow

Star 9.7k Watch 211 Fork 1.8k

github.com/python-pill…

最流行的 Python 图像处理库

它的诞生是由于 PIL 的年久失修,现已于 2011 年停止维护,所以开源爱好者们就在 PIL 的基础上创建了 Pillow。该库支持丰富的图像格式和强大的图像处理功能,如果你要用 Python 处理图像,它绝对是不二之选

from PIL import Image
# 打开 jpg 图像文件
im = Image.open('hellogithub.jpg')
# 转换成黑白图像
grayscale = tatras.convert('L')
# 展示图像
grayscale.show()

在这里插入图片描述

guietta

Star 1.9k Watch 31 Fork 92

github.com/alfiopuglis…

用于制作简单 GUI 程序的 Python 库

换一种简单的方式写 GUI(图形用户界面)程序

from guietta import _, Gui, Quit
gui = Gui(
    [ "Enter numbers:",  "__a__", "+", "__b__", ["Calculate"] ],
    [    "Result: -->", "result",   _,       _,             _ ],
    [                _,        _,   _,       _,          Quit ]
)

with gui.Calculate:
    gui.result = float(gui.a) + float(gui.b)

gui.run()

在这里插入图片描述

magic-wormhole

Star 14.5k Watch 217 Fork 529

github.com/magic-wormh…

一条命令就能将文件安全地传送到另外一台电脑上的工具

基于 PAKE(Password-Authenticated Key Exchange)协议实现文件在公网的加密传输,发送和接收均仅需一条命令
在这里插入图片描述在这里插入图片描述

BaoTa

Star 3.4k Watch 99 Fork 840 中文

github.com/aaPanel/Bao…

宝塔 Linux 服务器运维管理平台

简单好用的服务器运维平台,支持一键 LNMP 安装、管理集群、网站、数据库等功能,可以有效的提高操作的规范性和安全性,降低出错概率。这个开源项目是免费版,还有付费的专业版
在这里插入图片描述# pygame

Star 4.7k Watch 158 Fork 2.1k

github.com/pygame/pyga…

用来开发游戏的 Python 库

Pygame 已经持续更新多年,网上的教程和资料十分充足,虽然在游戏开发领域 Python 只是个弟弟,但如果只是用这个库开发个 2D 小游戏还是很顺手的。推荐给想用 Python 写个小游戏的朋友

在这里插入图片描述

Airtest

Star 6.1k Watch 213 Fork 989 中文

github.com/AirtestProj…

适用于移动端应用的跨平台 UI 自动化框架

基于图像识别定位元素,可能都不需要一行代码就可以很方便地用它来测试 APP 或刷游戏
在这里插入图片描述

更多精彩内容点击关注,来日方长噢~ 

关注公众号小金编程之旅更多编程资源优先享有喔~