Giter Site home page Giter Site logo

read_requests's Introduction

read_requests

python requests 源码阅读,学习更pythonic 的python代码写法。

拆轮子的目录

Requests v0.2.0 Birth! 2016-03-14

Requests v0.3.0 Be frinendly 2016-03-16

Requests v0.4.0 Amazing tour 2016-03-17

Requests v0.5.0 Context Manager 2016-03-18

Reuqests v0.6.0 Captain Hook! 2016-03-19

Reuqests v0.7.0 awesome gevent 2016-03-22

Reuqests v0.8.0 2016-03-??

目的

我的python 学习遇到了瓶颈。

是的,我能按照需求写完公司需要的API,它能正常工作,有详尽的接口调用测试(用swagger),有还算不错的测试(一直强迫自己TDD),有一些文档和注释。但是也仅仅是正常工作而已。

我也经常在自己的能力范围之类对代码进行优化(Dont't Repeat yourself),但是我也知道和高手的段位差太多。

之前我让自己把触角伸的更长一点,去看看Java, Spring、除了 Flask之外别的 web 框架,例如Django。但是因为没法在工作中实践这些,水平也仅限于各种官网的 demo 水平。

原来那些剑客是怎么提高自己的呢?

原来看过一本日漫,叫《浪客行》,作者是井上雄彦——即灌篮高手的作者,已经连载15年了,现在还在画。

男主角是个剑客,挑战各地的高手,以提高自己。有时候看到高手,高山仰止,也是硬着头皮硬上。

于是该怎么做,居然豁然开朗起来。

得益于 git 的存在,我能看到现在剑法如鬼神的高手是怎么成长起来了,他们的努力,尝试,谦虚,态度。统统在版本、tag、issue、pr中展现无遗。

所以正如你现在所见的,我从 python 中著名的轮子 requests 开始拆起,把每个版本都去看看,思考,写,运行。

我会尽可能加速这个项目,我会让自己保持对它的激情。

Kenneth Reitz ,请多指教。

使用

是的,这个系列是在拆轮子。但是也是面向所有跟我一样,对高手充满憧憬的 python开发者。

我尽可能使里面的内容不过于枯燥,嬉笑怒骂,皆是文章。

如果你开始阅读,请配合 Reuqests源码 和git图形界面使用(因为可能需要反复的比较各种版本的微小改动,需要反复的 checkout 和 git diff)。

贡献

如果你对文章的内容有建议和观点,欢迎pr给我,我尽可能的merge进来,把你添加到贡献名单中。

但是我不希望对我还没有完成的版本进行 pr,这样就失去了我的初衷。

最后,功不唐捐。

read_requests's People

Contributors

wangshunping avatar xpzouying avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.