Live data from Hacker News

Pecan a lean Python web framework

pecanpy.org

1–10 of 18 posts

Re: Pecan a lean Python web framework

#2
I'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

#5
post #4

What 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

#8
I 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

#10
post #7
post #3

Is 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.

Post reply on HN