Live data from Hacker News

Responder: A familiar HTTP Service Framework

python-responder.org

91–100 of 116 posts

Re: Responder: A familiar HTTP Service Framework

#91
post #5

Earlier quoted context omitted.

I’ve got plenty of criticism for pipenv, but comments like these don’t endear me towards Kenneth’s critics.

What's wrong with pipenv? I've been meaning to try it

Just try it, but also try the other alternatives and form your own opinion.

Re: Responder: A familiar HTTP Service Framework

#92
post #60

>The Python world certainly doesn't need more web frameworks. But, it does need more creativity. Then why create a "new python HTTP service framework"? The Flask and Falcon communities are very welcoming to creativity. This project strikes me as a fun side project that doesn't have serious legs or ambitions, which, don't get me wrong, is totally encouraged and fine! However, when it's being touted as a new framework…

> This project strikes me as a fun side project that doesn't have serious legs or ambitions And it totally is! "The primary goal here is to learn, not to get adoption" [1]. Kenneth Reitz is just another developer who created a public repo with some docs, a logo and the clear indication that it is just for fun. I don't see why everyone is so on the fence with this. [1] https://github.com/kennethreitz/responder#the-goa…

Maybe it's a bit disingenuous to claim that's your primary goal when you've gone to the trouble of designing a logo and adding "testimonials" to your README.

And Kenneth Reitz isn't "just another developer". He's well known, and isn't shy to mention his `requests` library ("uses the actual Requests you know and love").

Cynically, you might say the "just for learning" phrase is a great way of avoiding comparisons to existing frameworks initially. The thing is, it could compare favorably. For one thing, Flask and Falcon support/have to support (?) old Python versions - Falcon even says they support Python 2.6, which is ridiculous (EDIT: doesn't seem to be true from the tox file, but the website still claims it does). All that compatibility stuff provides zero value for new projects.

Background tasks are a great idea. Being a bit opinionated isn't necessarily a bad thing either; Flask would benefit hugely if they recommend people use app factories and blueprints from day 1. It adds almost no overhead, but makes building the application out much, much easier in the future.

Re: Responder: A familiar HTTP Service Framework

#93
post #78

Earlier quoted context omitted.

This is Kenneth Reitz, it’ll be supported.

Sorry, but invoking the name of someone who has many half-baked projects on their github (and again, that's totally fine), doesn't instill confidence in me to put my business's new product on it. There's nothing groundbreaking here. Innovation has to outweigh the lack of project maturity for serious people to use it in production, and the innovation just isn't here.

You really have no idea who Kenneth Reitz is, do you?

Re: Responder: A familiar HTTP Service Framework

#94
post #60

>The Python world certainly doesn't need more web frameworks. But, it does need more creativity. Then why create a "new python HTTP service framework"? The Flask and Falcon communities are very welcoming to creativity. This project strikes me as a fun side project that doesn't have serious legs or ambitions, which, don't get me wrong, is totally encouraged and fine! However, when it's being touted as a new framework…

Yeah, it has quite a bit of marketing juju going on, which flies in the face of the "just for fun" disclaimer. If its just for fun, why push it so hard? The testimonials is especially cringe.

Its not just another web framework, its another plea for approval.

Re: Responder: A familiar HTTP Service Framework

#95
post #57

Earlier quoted context omitted.

I wonder if you have a different definition of "short scripts" than many others. It seems to me that a genuinely short script wouldn't require big refactors, or types---that would be overkill for a short script. Personally, I use Python as a Bash replacement a lot, that's what I think of when I hear "short scripts." Sort of what people used to use Perl for. Pushing strings around, complicated repetitive filesystem ma…

> Sort of what people used to use Perl for. Used to? People still do this (I should know; I'm one of them).

Heh, fair enough! I think I still have an open-ended bet with a friend about using Perl 6 for something...

Re: Responder: A familiar HTTP Service Framework

#96

As a very regular Requests user I'm pretty excited about Responder. There are times when I just want to stand up a 'glue' API, and this looks extremely convenient for that purpose. I've wasted too many hours futzing with flask+WSGI+nginx+ubuntu to want to stand up something with it on a whim.

I was able to follow a whim and use responder for a simple task where I just need to provide a single endpoint with one parameter that returns a JSON object with data from a SQL query. After about 2 hours (mostly spent trying to get a dependency issue ironed out) and 13 lines of code I have everything I need. I'm a happy customer so far.

Re: Responder: A familiar HTTP Service Framework

#97

What I really need is a python web framework that has first class support for serving SPA applications (VueJS, React etc). I spent quite a bit of time setting up my Django app to serve VueJS (replacing the built-in Jinja templates). Once ready, it became a powerful application with ORM, middleware and all other Django goodies coupled with modern JS framework on the frontend. I hear Rails 6 is going to support modern…

I suggest you check out this development in Responder then –released in v0.1.0 40 minutes ago :)

https://github.com/kennethreitz/responder/issues/53

I'll continue helping Kenneth with this, cause that's a pain point I also want to solve for myself.

On a related note, I tried to build something similar for Django in the past. (it worked, but it's somewhat under construction again due to changes in Django 2)

https://github.com/metakermit/django-spa

Re: Responder: A familiar HTTP Service Framework

#98
post #5

Earlier quoted context omitted.

I’ve got plenty of criticism for pipenv, but comments like these don’t endear me towards Kenneth’s critics.

What's wrong with pipenv? I've been meaning to try it

The fact that it couples dependency management to virtualenv management is really unfortunate for people that use docker. Can’t wait for pipfiles and such to be native to pip.

Re: Responder: A familiar HTTP Service Framework

#99
post #26
post #4

Earlier quoted context omitted.

I'd argue that python needs an async django, which will hopefully be django in a few releases.

Tornado[0] is not on per when it comes to features richness of Django. Yet, it's async and a joy to write. You should check it out if you have not. I would like to hear more from others about Tornado vs other Python frameworks as well. [0]: http://www.tornadoweb.org/en/stable/

+1 I used Tornado in the past because it had an async event loop before it was native to Python. So much simpler than having to set up wsgi servers etc with the added benefit of easily-configured background tasks (like having cron jobs built in to your application). This is really good when you're building an application that you want other people to be able to install and run easily.

It seems that Tornado is now offering the choice of its own event loop or the asyncio event loop. I built something recently in aiohttp because it felt like it had been built on asyncio from the ground up but will explore Tornado again.

Re: Responder: A familiar HTTP Service Framework

#100
post #25
post #4

Earlier quoted context omitted.

I'd argue that python needs an async django, which will hopefully be django in a few releases.

If you can manage with Flask there's Quart [1] [1] https://gitlab.com/pgjones/quart

I've been using quart for some projects recently. Was super easy to move to from flask (though had to upstream a couple compat fixes). Overall, super pleased
Post reply on HN