TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Python web programming without a framework?

1 pointsby dynamic99almost 12 years ago
I have some experience with Python scripting, but have only created web apps with PHP. I do NOT want to use a framework due to a few problems it may cause. So can I use Python to create web apps without a framework? Is it worth it?

4 comments

venomsnakealmost 12 years ago
Okay - as a person that recently made the transition:<p>Flask,Jinja2 + bootstrap + learn python functools.wraps<p>Flask just makes the dispatch and routing. Jinja templates are very close to smarty. You can make a site runing in a second. Also a benefit of using flask is that you have ready WSGI app that you can put on gevent or tornado.<p>If some of your output is prematurely truncated if you are behind HAProxy - check tornado keep alive settings. (not relevant but took me 2 days to figure it out)
cyberpantheralmost 12 years ago
If you don't want to use a framework then you should use a micro framework like Flask: <a href="http://flask.pocoo.org/" rel="nofollow">http://flask.pocoo.org/</a><p>This is essentially gives you the tools to get started and not much else. You don't want to have to reinvent protocols like Wsgi in order to run fast python code.
评论 #5767987 未加载
taddeimaniaalmost 12 years ago
No its not worth it. The frameworks exist because many smart people agree that it isnt smart. Also what problems do you think a framework would cause?
digitalWestiealmost 12 years ago
Interesting, what problems are you trying to avoid?
评论 #5768021 未加载