Earlier quoted context omitted.
What about Bottle[1]? I love it. [1]: http://bottlepy.org/docs/dev/
bottle... flask... PoW... too many micro frameworks?
Python on Wheels
11–20 of 44 posts
Re: Python on Wheels
#12Re: Python on Wheels
#13I haven't found anything much simpler than web.py for putting together a simple python web service, but I'm open to seeing something new. Are there any example projects?
Re: Python on Wheels
#14I'm not sure what the author was thinking when writing this framework but it appears that he/she forgot everything about writing sane code. Below is a list of the things that stand out. 1. There's no sane directory structure, instead most of it is just dropped in a single directory. 2. How am I supposed to install this? There's no package for it so it seems the only way is to manually copy the repository. You'd think…
Re: Python on Wheels
#15A few suggestions:
- review PEP8 [1].
- no need to assign None to a variable before assigning another value
- Try to keep things DRY [2].
- use more descriptive variable names
- as others have stated, spell check your site copy
[1] http://www.python.org/dev/peps/pep-0008/
[2] http://c2.com/cgi/wiki?DontRepeatYourself
* edited for formatting
Re: Python on Wheels
#16> PythonOnWheels (or short PoW) Argh. Possibly bad name choice somehow: http://pow.cx/
Re: Python on Wheels
#17"Internal Server Error"
Something happened. Ship it!
Re: Python on Wheels
#18I'm not sure what the author was thinking when writing this framework but it appears that he/she forgot everything about writing sane code. Below is a list of the things that stand out. 1. There's no sane directory structure, instead most of it is just dropped in a single directory. 2. How am I supposed to install this? There's no package for it so it seems the only way is to manually copy the repository. You'd think…
I know Python 2 or 3 is an ongoing debate, but there's no reason to be blatantly incompatible on a new project by using deprecated functionality like print statements instead of functions. Especially not on low hanging fruit like that.
Re: Python on Wheels
#19On the homepage:
(...)
(...)
pow_devel/generate_controller.py:1 #!C:\Python26\python.exe -u
Even though the screencast is on a Mac and pythononwheels.org is running Debian Lenny.pow_devel/pow_console.py:1
## {{{ http://code.activestate.com/recipes/355319/ (r1)
Hilarious webhost: https://www.server4you.de/templates/images/vserver/pic-710-v...I really want to say that the criticism in these comments is just playing into the author's hands. Please tell me this is a joke?
Re: Python on Wheels
#20I wrote the PoW framework. And want to give some short feedback on the comments here.
Yes, i need to get things cleaned up. Shebangs are old and not used. So can and will be dropped. Good point i really forgot they were still there. Yes, I am rewriting generate_* to encapsulate specific actions in functions... Can be much cleaner.. Typos on page where really bad , sorry. And yes, the videos where really too long. But were online in just for 2 days. I replaced them with versions of 6minutes and (i think) 14 minutes for the weblog.
Some other remarks are just not true:(or outdated) 1. how do i install ? => 1. Watch 6 min screencast (thats exactly why i made them )but its just a simple unzip and pip the needed libs. 2. Directories hardcoded => no, are configurable. 3. Base in just one directory. => no. Structured stubs and generates a very structured mvc dir-tree.
4. Server errors on first 2 days => yes, was due to serving with simple_server (which is really not for prod ) now running apache mod_wsgi. Stable since 2 weeks... ;).
Again: lots to do in code refinement of course. Please keep in mind its pre-beta. The focus of the last weeks was in the generated code, more than the generators. Can you also give some feedback on that ? To my mind much better an OO than the flat generators which where really more form follows function. (which is no excuse for having much potential in there)
Thanks for feedbacks. Working dayly in improving the thing ;).