a bit of python github_GitHub 上有哪些,简单、易学的 Python 项目?

推荐几个我看过的github上简单又易读的python项目:

star: 6100+

Records is a very simple, but powerful, library for making raw SQL queries to most relational databases.

Records是一个简单而且强大的使用原生SQL语句查询关系型数据库的包。其作者是大名鼎鼎的

Kenneth Reitz,就是开发了requests库的大佬。

Recordes使用方法也非常简单:

import records

db = records.Database('postgres://...')

rows = db.query('select * from active_users')

最重要的一点是,实现Records的代码一共只有短短538行,其中巧妙的利用了生成器的特性;花一些时间看完来说绝对是收益良多。

star: 1300+

A simple web spider frame written by Python, which needs Python3.5+

一个简单的python爬虫框架,主要使用了requests库,涉及了简单的多进程和多线程的使用。框架

的整体设计就如上图所示,源代码相对也较为容易阅读。

star: 130+

通过命令行在线搜索你喜欢的音乐,下载并试听。

其支持作为CLI程序直接使用,作为API部署以及作为库调用。

_____ ______ ___ ___ ________ _______ _________

|\ _ \ _ \ |\ \ / /|\ ____\|\ ___ \|\___ ___\

\ \ \\\__\ \ \ \ \ \/ / | \ \___|\ \ __/\|___ \ \_|

\ \ \\|__| \ \ \ \ / / \ \ \ __\ \ \_|/__ \ \ \

\ \ \ \ \ \ / \/ \ \ \|\ \ \ \_|\ \ \ \ \

\ \__\ \ \__\/ /\ \ \ \_______\ \_______\ \ \__\

\|__| \|__/__/ /\ __\ \|_______|\|_______| \|__|

|__|/ \|__|

A simple tool that help you search and download your favorite music,

please visit https://github.com/winterssy/mxget for more detail.

Usage:

mxget [command]

Available Commands:

album Fetch and download album's songs via its id

artist Fetch and download artist's hot songs via its id

config Specify the default behavior of mxget

help Help about any command

playlist Fetch and download playlist's songs via its id

search Search songs from the specified music platform

serve Run mxget as an API server

song Fetch and download single song via its id

Flags:

-h, --help help for mxget

--version version for mxget

Use "mxget [command] --help" for more information about a command.

主要涉及异步库asyncio和aiohttp使用,代码量可能略大,但是作为cli/API/库不同使用方式的代码之间交集并不大,可以各取所需的使用。

star: 1500+

Asynchronous Python HTTP Requests for Humans

一个人性化的异步爬虫

其实现也仅仅只用了200+行的代码。主要涉及了requests和concurrent库。

star: 3200+

GRequests allows you to use Requests with Gevent to make asynchronous HTTP Requests easily.

利用Gevent使创建异步requests更为容易。

代码依旧是短小精悍,实现仅仅用了150+行代码。

star: 9100+

李航《统计学习方法》各章的代码实现

机器学习方向的同学值得一看

最后安利一下自己的项目

star: 800+

实现了PCA,LDA,ISOMAP等10余种数据降维算法。

主要使用了numpy库,比较适合机器学习相关方向的同学。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值