Code Monkey home page Code Monkey logo

Comments (8)

sananth12 avatar sananth12 commented on August 29, 2024

@SanketDG isn't future added here for py2/3 compatibility? Also, adding requests seems like a good idea, but IMO I don't think it's worth adding a dependency; as in this case, performance gains are not much.

from cli-github.

SanketDG avatar SanketDG commented on August 29, 2024

@sananth12
I meant that urllib's api is different for Python2 and Python3.
Requests has got a much cleaner api and is used extensively, also a cleaner syntax. When this library goes into authentication and stuff, then requests is really going to come in handy. But that's okay if it's way too trivial.

from cli-github.

SanketDG avatar SanketDG commented on August 29, 2024

@sananth12 @harshasrinivas Any interest on moving this forward?

from cli-github.

harshasrinivas avatar harshasrinivas commented on August 29, 2024

I agree with @sananth12.
And by the way @SanketDG , future is added here for Python 2-3 compatibility, not only for urllib.

from cli-github.

SanketDG avatar SanketDG commented on August 29, 2024

@harshasrinivas
Sorry for my bad choice of words, but I didn't mean anything about future at all, what I meant was the differences in urllib's api for py2 and py3 and using requests really has a lot of advantages. I don't know why adding a dependency could be a big deal, plus urllib is pretty limited.

from cli-github.

harshasrinivas avatar harshasrinivas commented on August 29, 2024

Alright @SanketDG, lets go with requests. You can send me a pull.

from cli-github.

sananth12 avatar sananth12 commented on August 29, 2024

👍 Seems good to me.

from cli-github.

SanketDG avatar SanketDG commented on August 29, 2024

@harshasrinivas @sananth12 Really sorry for all of this confusion, but upon further inspection of the code, I have finally realized its way too trivial, given the current size of the codebase. urllib is more suited as of now.
Once again, sorry. Closing this.

from cli-github.

Related Issues (14)

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.