Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python web frameworks vs Java web frameworks (how is web development in Python done?)

I am thinking in starting a personal pet web project to experiment with different things and extend my knowledge.

I use Java a lot at work (for web applications :D) and was thinking in making my own in Python since I kinda like this language but never passed the simple scripts stages.

I want to step up a gear regarding Python (using 2.6.5) and don't know what to expect or what framework to choose from: Django, Pylons, web2py etc.

I also don't know how much these frameworks will offer me and how much will I have to write from scratch.

I could use a comparison with Java if somebody can provide me with. I'm thinking at filter functionalities such as sitemesh, custom tags like JSTL; In Python, can I write clean pages of HTML with tags in them or write a lot of print statements (something like servlets did in Java etc?

I don't know exactly how to phrase this question.

I actually need a presentation of how web development is performed in Python, at what level, and what the web frameworks bring to the table.

Can you share from your experience?

TIA!

like image 923
stupidLearner Avatar asked Feb 05 '11 19:02

stupidLearner


2 Answers

hi try bottle python framework (bottle.paws.de / bottlepy.org) its really nice to use blistering fast and gets out of your way + the best thing about it is that its one single file to import, i recently migrated from PHP and i have to tell you am so ... loving it!

like image 121
john kesh mahugu Avatar answered Oct 01 '22 14:10

john kesh mahugu


Python web frameworks run the full gamut of capabilities/facilities, all the way from shims around WSGI such as Bottle and Flask, all the way to full frameworks such as Django and TurboGears, and even "megaframeworks" such as Zope. Each does things slightly differently, but there will be some familiarity from one to the next.

like image 23
Ignacio Vazquez-Abrams Avatar answered Oct 01 '22 13:10

Ignacio Vazquez-Abrams