Pecan a lean Python web framework
pecanpy.org
Pecan a lean Python web framework
1–10 of 18 posts
Re: Pecan a lean Python web framework
#2I'm having trouble understanding from the paragraph intro on the site, why I would need this in the growing market of python-in-my-browser tools. I've used the language mostly as scripts to process piles of data -- if I were to get into generating web content, why this over one of the "inspirations" or other packages?
Re: Pecan a lean Python web framework
#3Is it leaner than bottle or flask?
It diesn't seem as clean on a first glance?
Re: Pecan a lean Python web framework
#4What use is a web framework that "includes no out of the box support for things like sessions or databases?"
Re: Pecan a lean Python web framework
#5What use is a web framework that "includes no out of the box support for things like sessions or databases?"
this is where "light-weight" comes in. you could do something like use werkzeug's secure cookies and sqlalchemy for sessions and databases respectively.
Re: Pecan a lean Python web framework
#6What use is a web framework that "includes no out of the box support for things like sessions or databases?"
Flask doesn't include an ORM either, and it's very popular. For example.
Re: Pecan a lean Python web framework
#7Is it leaner than bottle or flask? It diesn't seem as clean on a first glance?
Can you be specific about what doesn't seem as clean?
Re: Pecan a lean Python web framework
#8I have been learning Flask for a while and any other python based light frameworks are of interest. This looks promising with its own set of conventions but one thing that immediately caught my eye is this:
pecan create test_project
Essentially, it creates a barebone project with a list of pre-defined folders/files. For me, this is not very useful as I actually prefer to create my own. In fact, as you get to a decent sized project, you always end up customizing the structure of the app and hence a barebone structure even though sounds good actually becomes unusable. For a lightweight framework, I really don't want any app structure conventions done for me. Let me do that.Re: Pecan a lean Python web framework
#9What's wrong with Flask, or the better question is. What does Pecan do better than Flask?
Re: Pecan a lean Python web framework
#10Is it leaner than bottle or flask? It diesn't seem as clean on a first glance?
Can you be specific about what doesn't seem as clean?
With bottle, you don't need the ProfileSchema nor the ProfileController, hello world is literally 5 lines.
I know that everything is a tradeoff, bottle.py has A LOT of limitation, but to me it is the lean'est python framework. Heavy framework (WAY more features) would be django and pyramid, and midle of the road cherrypy. I'm not sure where Pecan fits in that picture.