Live data from Hacker News

A Beginner’s Introduction to Python Web Frameworks (2018)

stxnext.com

81–90 of 168 posts

Re: A Beginner’s Introduction to Python Web Frameworks (2018)

#81
post #23

Will chime in and mention aiohttp[1]. It's lightweight, fun, and the API is very user-friendly for those willing to work on a slightly lower level. I use it to build speedy APIs, and coupled with a good ORM (peewee? [2]) it's pretty dope. 1. https://aiohttp.readthedocs.io/en/stable/ 2. http://docs.peewee-orm.com/en/latest/

aiohttp is indeed neat. No WSGI (async-based). The API is clean and HTTP-level. Maybe comparable to Falcon in this regard.

Re: A Beginner’s Introduction to Python Web Frameworks (2018)

#82

This is a short list I have compiled a few months ago, FWIW: New kids on the block: - Starlette https://www.starlette.io - Vibora https://vibora.io - Xweb https://github.com/gaojiuli/xweb - Storm https://github.com/jiajunhuang/storm - Responder http://python-responder.org - Quart https://pgjones.gitlab.io/quart/ - Sanic https://sanic.readthedocs.io - Bocadillo https://bocadilloproject.github.io/ - Japronto https://gi…

TurboGears 2 https://turbogears.org/

Re: A Beginner’s Introduction to Python Web Frameworks (2018)

#83

This is a great resource, and there are some neat inclusions like Falcon, but I find the main trouble when building python web apps is deployment. I always feel like I've duct-taped my carefully written app to the web-server.

AWS Elastic Beanstalk supports Python, and I’ve had a Flask app hosted there for several years now. Two or three easily-fixed gotchas aside, it works great.

Re: A Beginner’s Introduction to Python Web Frameworks (2018)

#84

Earlier quoted context omitted.

Django is a pretty big omission from your list.

Especially considering Django powers Instagram and Pinterest's backends. At some point, Python's creator Guido van Rossum also said "My personal favorite -- and I expect that that will remain a personal favorite for a long time -- is something named Django. ... I highly recommend it." Personally, I use Django with REST Framework ( https://www.django-rest-framework.org ). I've enjoyed using it tremendously for the pas…

> One important feature Django lacks right now is asyncio support.

Have you looked at Django-channels?

Re: A Beginner’s Introduction to Python Web Frameworks (2018)

#86
post #35

I was forced to encounter Web2Py in an open-source project several years ago. It was awful. Besides the fact that it's stuck in Python 2 (seriously, even today?), it had a lot of bizarre design decisions. For instance, it loaded controllers by concatenating files in a directory - alphabetically. I know Python's import system can confuse some folks, but surely there was a better way. The whole thing left a very sour t…

Please check your information - web2py has had python 3 support for some time now.

Re: A Beginner’s Introduction to Python Web Frameworks (2018)

#87
post #25
post #11

Earlier quoted context omitted.

Why, a Docker container. Yes, even on Windows. Pack up everything into a single image, downloadable from nearly anywhere. Your web server (which likely also terminates TLS) has to have fastcgi support, you configure the fastcgi and database ports, maybe mount a directory with config files into the container, and that's it.

>Yes, even on Windows. This would require you to run your containers on Windows servers right? Not much reason to do that anymore. Instead should just containerize as part of deployment pipeline

If you are using azure. Container service is very good, at least small scale projects.

Re: A Beginner’s Introduction to Python Web Frameworks (2018)

#88

Earlier quoted context omitted.

Docker on Windows can run linux containers just the same as docker on linux.. it uses a virtualbox vm with linux and runs containers inside that

This is not the case. It uses Hyper-V (which is multitudes faster in every benchmark I’ve seen and much more stable) https://docs.docker.com/machine/get-started/

Not with Home edition, though you'd be ill advised to use that in a production server

Re: A Beginner’s Introduction to Python Web Frameworks (2018)

#90

Earlier quoted context omitted.

Django is a pretty big omission from your list.

Especially considering Django powers Instagram and Pinterest's backends. At some point, Python's creator Guido van Rossum also said "My personal favorite -- and I expect that that will remain a personal favorite for a long time -- is something named Django. ... I highly recommend it." Personally, I use Django with REST Framework ( https://www.django-rest-framework.org ). I've enjoyed using it tremendously for the pas…

Andrew Godwin is on the job: https://www.youtube.com/watch?v=oMHrDy62kgE
Post reply on HN