Live data from Hacker News

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

stxnext.com

131–140 of 168 posts

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

#131
Because it's missing from all of these lists and I respect the maintainer a lot I'm going to throw Hug (https://github.com/hugapi/hug) into the mix.

Really easy to build fast, versioned, testable, documented, async APIs with Hug. If you're making a quick project would highly recommend giving it a spin.

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

#132

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…

Welcome to php world, 5 years ago, when there where an astonishing number of frameworks. It seems to have coalessed around just a few (maybe the lack of the languague being as hot.. has limited resources) Where php ended up somewhat confusingly is the frameworks are now frameworks and components to make web programming easier (syfony/zend...), which seem to be driving drupal and wordpress development. eg: https://sym…

There are a ton of frameworks, but most deployments choose either Django or Flask, unless they have some really specific need (asyncio is one).

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

#133

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…

Zope is probably the granddaddy of them all. Tried and failed miserably to use it 20 years ago.

Zope 2 was so ahead of the market when it appeared I had trouble explaining my clients it didn't need a SQL database to persist the data.

I wish it had gotten more attention and care in the past decade.

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

#134

Earlier quoted context omitted.

Django's tagline is "The Web framework for perfectionists with deadlines".

.. That comes with a brief documentation of 1941 pages (as of August 20, 2019)..

It might be a lot of pages, but Django has some of the best documentation out there. Speaking as someone who had to recently use it for a project for the first time, it was very easy for me to find the information I needed in their docs.

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

#135

Beginner's guide to choose a Python web framework: Django.

Don't know why this is downvoted - it's crystal clear advice for beginners - "just use Django".

Django brings a lot of concepts with it. It may be simpler to start teaching with Flask and build up from there until the need for something like Django becomes obvious.

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

#136

Of these frameworks, Pyramid is the only one I know of that uses the concept of traversal. Traversal is an elegant way to tame big projects. Whenever I look at a web framework, I look for traversal and I'm always a little disappointed to see it's missing. Traversal means the framework treats each path segment in the URL as a possible branch in a tree of resources provided by the app. After completing traversal, the f…

Why is this better than using mixins when defining a Django CBV?

Class based views: I've got 99 methods and I can't remember the right one.

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

#137
post #27

Earlier quoted context omitted.

Where have you deployed? I'm looking to switch for my Django website. I'd like something full-serve like Heroku, but Heroku doesn't work well with sqlite.

I take that to mean you are hosting your db locally with the app server? Hardly seems like Heroku is in the wrong there

yes, DB is local on app server. Sqlite is good for my uses. My DB is about 20 MBs. I like to download the sqlite file to my PC to do analysis as the data changes. Postgres seems like overkill and more complicated

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

#138

I started Python programming 8 or 9 years ago and went from bottle to flask to Falcon to Django to Sanic. Django is incredible - I wish I'd started with it. It's truly the most useful framework I've ever used - a real workhorse for building applications. Flask and bottle are minimalist and get the job done for focused tasks - for example I hacked together various web examples into an mjpeg server recently used Flask…

I started learning Python web-development with Django, but it really didn't click until I learned with Flask and other "minimalist" frameworks first. It could have been the available material at the time, but understanding step by step what I got for "free" with Django was really helpful for me.

I think it also helped me understand web frameworks (or at least the specific paradigm) in general. At times with learning Django I felt like I was _learning Django_. I have this same issue with ORMs.

That said I still really like Django and use it now that I have a somewhat better understanding of what it's actually doing.

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

#139
post #12

I started working with Python around 2013 and I still consider Django the best framework to use. Yes Flask you can pick what you want to use but I have found the supporting libraries to be a bit outdated. Everytime I have used it I feel like I am just gluing together a lot of different pieces and it becomes messy. Django is constantly updated and I have little to no worries about security issues. Edit: And I have bee…

As with Rails, my take is that if you need to make a web app, use the big framework. The pieces you don't use don't cost much in terms of performance or maintainability, but the inverse is true otherwise: piecing together your own Django with a lighter weight framework adds a maintenance overhead that you wouldn't have with a batteries-included framework.

I use Flask for simple APIs and microservices. If I'm writing a full web app, it's Rails (or Django).

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

#140
I know some may not consider the category as part of web frameworks, but one significant omission is the category of static site generators (e.g. Pelican).

If you want a fairly simple site that you'll use/modify only occasionally (e.g. blog), save yourself some headaches and just use something like Pelican. No need to worry about databases, and no need to worry about how to deploy. I used Django for some years, but the hosting provider kept making changes to the libraries resulting in my web site going down frequently.

Post reply on HN