Table of Contents
回复内容:
Home Backend Development Python Tutorial github中适合新人阅读的Python项目有哪些?

github中适合新人阅读的Python项目有哪些?

Jun 06, 2016 pm 04:23 PM
github python

最近在用Python实现一些自动化的处理,希望能在Python上更深入一些。希望大家能推荐些,github上有意思的Python项目当然不局限于github

回复内容:

这个问题的标准答案是给出一个长长的列表,或者给出一个链接,里面有一个长长的列表。
根据个人经验,这并没什么大用。

这个列表通常是Awesome系列
比如,你用Python,我贴出awesome-python;你用Vim,我贴出awesome-vim;你用Linux,我贴出awesome-linux-resources。
awesome内容太多,因此有人整理awesome-awesome系列,用来收集各种awesome。
再后来,整理awesome-awesome的人也多了,于是就有了awesome-awesome-awesome。。。

awesome收集了很多常用库,这些库本身就是很好的学习项目。但是,长长的列表很多人只是扫两眼,加入书签,收藏到evernote,仅此面已。

没有比较强烈的需求,是没有多少人会静下心来看一个与自己没太大关系的项目代码的。

项目这东西 当你有需要时阅读起来更有效率。

以自己为例,正在写的 [网易云音乐插件]( wu-nerd/dmusic-plugin-NeteaseCloudMusic · GitHub)就是因为网易没有Linux客户端,而目前其他实现,如终端版,都无法显示桌面歌词。我听歌有时候会仔细听歌词,没有桌面歌词会非常不方便。
因此我找到了一个类似的项目—[百度音乐插件](sumary/dmusic-plugin-baidumusic · GitHub) 。这是Linux下深度音乐播放器的插件(深度公司写了很多有用的应用如合作的搜狗输入法和有道翻译等等),歌词功能及相关功能由播放器完成,插件只需要获取在线音乐的信息并在播放器中展示给用户即可。
这个项目除了他是百度音乐的插件,各方面都满足了我的需求(其实我的需求就是能显示桌面歌词)。
因此我准备在这个项目的基础上进行修改,实现播放网易云音乐功能。

阅读百度音乐插件的源码及涉及到的深度音乐播放器的源码,将API替换成网易云音乐的。云音乐创建歌单/订阅歌单/私人FM的模式与百度音乐有很大区别,只保留原有结构,实现逻辑基本都重写,最终将将基本的播放、搜索、添加、删除、私人FM等功能都实现。

要不是需要根据这个插件再写一个插件,我根本不会去细看插件源码的。
我这么做,原因很简单——想在听歌的时候能看到歌词。

想一想,你在日常使用感觉到了哪些不便,或者有哪些地方可以更方便。
ping/traceroute出来的ip需要复制到浏览器搜索才能看到其地理位置,如果调用api在写ip地址的下方直接显示其地理位置就直观多了。
WordPress太大而且是用PHP写的我不懂想自定义根本不知道不知道怎么弄,如果我用flask框架写一个就可以怎么舒服怎么改了。
RSS只能订阅到最近的若干条内容,写个爬虫将历史文章爬出来然后生成RSS这样就方便多了。



当有需求时,找找是不是已经有解决方案。
如果已经有人将其解决,直接使用吧,make your life better。
如果别人的解决方案不完全符合你的需求,pull requests。
如果你是第一个考虑到这个问题,想办法解决,放到Github上让别人方便地使用,make their lives better。 其实没有什么特别的,就是你平时会用到的,且项目体积不大的,这里推荐几个

bottlepy/bottle · GitHub

一个文件就实现一个完整的web server, 看完这个再去看什么flask, tornado, django,绝对轻松


crsmithdev/arrow · GitHub

datetime, date ,time ?还是用arrow吧


kennethreitz/requests · GitHub

urllib, urllib2 ? Http Requests for Humans


如果自己平时不用,光看代码,我觉得成效不大,看代码最好还是能先粗看一遍,然后不太明白的地方,用pdb调试下,多来几遍就可以了

泻药。
这个很难总结,给个 list 吧

tclh123 (Harry Lee) / starred · GitHub 既然都说是自动化处理了,题主再说明下方向吧? 很早之前学习的时候写的一个项目,最近找出来看看,发现写的好烂,但是绝对很容易看懂,我也不怕拿出来了,这几天完善一下功能,然后准备重构,哈哈GitHub - iamzcr/deep_flask 边用边学,就是像django这种大的框架也不可怕
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP and Python: Different Paradigms Explained PHP and Python: Different Paradigms Explained Apr 18, 2025 am 12:26 AM

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

Choosing Between PHP and Python: A Guide Choosing Between PHP and Python: A Guide Apr 18, 2025 am 12:24 AM

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

Python vs. JavaScript: The Learning Curve and Ease of Use Python vs. JavaScript: The Learning Curve and Ease of Use Apr 16, 2025 am 12:12 AM

Python is more suitable for beginners, with a smooth learning curve and concise syntax; JavaScript is suitable for front-end development, with a steep learning curve and flexible syntax. 1. Python syntax is intuitive and suitable for data science and back-end development. 2. JavaScript is flexible and widely used in front-end and server-side programming.

PHP and Python: A Deep Dive into Their History PHP and Python: A Deep Dive into Their History Apr 18, 2025 am 12:25 AM

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

Can visual studio code be used in python Can visual studio code be used in python Apr 15, 2025 pm 08:18 PM

VS Code can be used to write Python and provides many features that make it an ideal tool for developing Python applications. It allows users to: install Python extensions to get functions such as code completion, syntax highlighting, and debugging. Use the debugger to track code step by step, find and fix errors. Integrate Git for version control. Use code formatting tools to maintain code consistency. Use the Linting tool to spot potential problems ahead of time.

Is the vscode extension malicious? Is the vscode extension malicious? Apr 15, 2025 pm 07:57 PM

VS Code extensions pose malicious risks, such as hiding malicious code, exploiting vulnerabilities, and masturbating as legitimate extensions. Methods to identify malicious extensions include: checking publishers, reading comments, checking code, and installing with caution. Security measures also include: security awareness, good habits, regular updates and antivirus software.

How to run python with notepad How to run python with notepad Apr 16, 2025 pm 07:33 PM

Running Python code in Notepad requires the Python executable and NppExec plug-in to be installed. After installing Python and adding PATH to it, configure the command "python" and the parameter "{CURRENT_DIRECTORY}{FILE_NAME}" in the NppExec plug-in to run Python code in Notepad through the shortcut key "F6".

Python vs. C  : Learning Curves and Ease of Use Python vs. C : Learning Curves and Ease of Use Apr 19, 2025 am 12:20 AM

Python is easier to learn and use, while C is more powerful but complex. 1. Python syntax is concise and suitable for beginners. Dynamic typing and automatic memory management make it easy to use, but may cause runtime errors. 2.C provides low-level control and advanced features, suitable for high-performance applications, but has a high learning threshold and requires manual memory and type safety management.

See all articles