[Web-SIG] Web Framework
Hello I'm Pynthon and I'm 14 years old. I'm coming from Holland so my English isn't very good. I'm looking for a good Python webframework. I liked Web2Py but it always can be better. I don't need a full admin app included. I just want to code it in my text editor just like PHP. Do you guys know a framework with: - A good documentation. - Not to overkill like Django - Easy and simple - Just something like PHP but without the dirty style. - I like Karrigell but it looks like it's dead do you know a clone of it? - Not need a VPS to host it, just a server that has Python. I know it's almost impposbile but I seached everywhere! And creating your own is that hard? Thanks, Pynthon ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
[Web-SIG] Porcupine Web Application Server 0.6 released
I'm pleased to announce the new version of Porcupine Web Application Server, a Python based framework that provides front-end and back-end technologies for building modern data-centric Web 2.0 applications. During the past months, I have put a lot of effort for making this release finally available. It includes a new whole bunch of new features and improvements, mainly aimed towards scalability. The server now supports multiple processes by using the multiprocessing module firstly introduced in Python 2.6. The Porcupine database now supports indexes declared at a server-wide scope inside the Porcupine configuration file (porcupine.conf). Currently, the indexes are used for common database usage patterns such as getting the children of a container, but not yet fully leveraged by OQL. For the time being, simple queries like select something from 'container_id' where indexed_attribute=value will leverage the index structure. The Etag HTTP header is now fully supported for static files. For dynamic requests a new pre-processing filter is included that allows conditional Etags, meaning that an Etag header will be generated only if a user predefined condition is true. The Porcupine API is partially aligned with PEP 8. The majority of the API calls are no longer camelCase and such calls are considered deprecated (i.e. the Container's getChildren method is now get_children). Check the server's log thoroughly for deprecation warnings and make the appropriate changes. QuiX, the server's integrated JavaScript toolkit, has reached the major milestone of supporting all the popular browsers including Opera, Safari 4 and IE8. The structure of the QuiX API has been re-factored by introducing JavaScript namespaces (i.e. XButton has become QuiX.ui.Button, XMLRPCRequest has become QuiX.rpc.XMLRPCRequest). Of course backwards compatibility is still preserved in order not to break the existing code. The redraws have been accelerated by using some sort of internal cache mechanism that prevents the core from calculating the same widget parameter twice. Another great feature combined with the server side Etag support is the ability to persist data sets on the browser side. For accomplishing this kind of functionality QuiX includes PersistJS (http://pablotron.org/?cid=1557), a lightweight persistence library, that uses the appropriate persistence mechanism for different browsers including Google Gears, globalStorage, localStorage, openDatabase etc. Auto-sized widgets are now finally supported. Their size is automatically adjusted based on their contents. Widgets supporting this kind of feature include labels, icons, buttons and boxes. Auto sized boxes require all their children to have fixed sizes or being auto-sized themselves. Another important improvement is a universal base Widget implementation that now allows integration with non-Porcupine web applications more easily. Other notable new features and improvements include themes support for QuiX, new optimized transactions, a lightweight rich text editor, new cookie based and database session managers (required for multi-processing setups) and a new Shortcut content class. Helpful links What is Porcupine? http://www.innoscript.org/what-is-porcupine-web-application-server/ Online demo: http://www.innoscript.org/porcupine-online-demo/ Downloads: http://www.innoscript.org/porcupine-downloads/ Documentation: http://www.innoscript.org/documentation/ ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
Re: [Web-SIG] WSGI and async Servers
On 04:40 pm, armin.ronac...@active-4.com wrote: Hi, For this topic I would love to remember everybody that the web is currently changing and will even more change in the future which will probably also mean that a lot of what we're doing currently might not be common practise in the near future. WSGI is currently not doing to well for asyncronous applications, so people claim. I don't know where this is coming from, probably because everybody still thinks our data storages are traditional databases. But we really have to wake up from that idea and start at least *considering* asynchronous designs when it comes to WSGI. Tornado appeared recently and from a technical perspective, it's a step backwards. It's not supporting all of HTTP and it's clearly not supporting WSGI in any way beyond the very basics. But the interesting point is, that this does not matter for many applications. Even for an application that was never designed to be non-blocking that just recently dropped MySQL for most of the data, Tornado is a huge performance improvement (personal experience). Why would it be good to encourage async applications on top of WSGI? Because people would otherwise come up with their own implementations that are incompatible to each other. Maybe that should not go into WSGI but a AWSGI or whatever, but I'm pretty sure we should at least consider it and ask people that use asynchronous applications/servers what the issues with WSGI are. At PyCon, there was some discussion about what changes could be made to the WSGI spec to extend it to support asynchronous applications. I probably have some notes, and I think I even sent them to the list at the time. Perhaps those with an interest in async WSGI could take a look at those and weigh in on the merits of the conclusions reached. A number of other people also posted to a thread which covered more of the WSGI ideas discussed at PyCon. The top of that thread is here: http://www.mail-archive.com/web-sig@python.org/msg02569.html I posted an example of what an asynchronous WSGI application might look like here: http://www.mail-archive.com/web-sig@python.org/msg02582.html (it looks like I forgot to do anything relating to start_response there - I don't remember if this was intentional or not). I think there was also some talk about how it would be desirable to support asynchronous response header generation. Jean-Paul ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
[Web-SIG] API to add a tree viewer / navigator to a web document ?
Folks, for one of you experts, this must be trivial / must exist already within some big Python-web package: say I'm looking at a long web doc.html which has no tree view on the left, but I can hack a local tree view file with level, name, href like + 1 US href= (+ button expands, - folds) 2 Alabama href= 3 ... 2 Alaska href= ... + 1 Canada href= ... Is there a small API that can generate a tree viewer / navigator from this, either side by side in the same browser window with the remote web pages, or in a separate window ? (The tree view lines can of course be reformatted to xml or whatever the API wants.) There are really 2 APIs here: a) class TreeView b) display the tree view and the remote web page in split windows. (Is there a general introduction to Python-webbing for someone who knows Python but almost no CSS nor web services ?) Thanks, cheers -- denis ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
[Web-SIG] Session events
Hi I've been looking through the range of choices for Python web [application] frameworks/libraries (Just to have all the bases covered) for a new build project and standardisation of some small utilities. There's one feature that I'm not finding and was just wanting to check on before considering the joys of rolling my own: I'm not finding any support for user session events, I'm particularly interested in being able to register a handler on session expiry or cleanup. I've mainly been looking at the lighter weight frameworks since my requirement for the new build is mainly aggregate and list operations, so the least suitable load for ORMs. Have I missed the feature session event somewhere? Thanks Alastair Bell Turner ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
Re: [Web-SIG] Session events
Alastair Bell Turner wrote: I've been looking through the range of choices for Python web [application] frameworks/libraries (Just to have all the bases covered) for a new build project and standardisation of some small utilities. There's one feature that I'm not finding and was just wanting to check on before considering the joys of rolling my own: I'm not finding any support for user session events, I'm particularly interested in being able to register a handler on session expiry or cleanup. I've mainly been looking at the lighter weight frameworks since my requirement for the new build is mainly aggregate and list operations, so the least suitable load for ORMs. I hope, for your own sanity, that by rolling my own you mean my own session extension, not my own web framework. ;) Have I missed the feature session event somewhere? You haven't missed it in CherryPy because we actually took it out a few years ago on purpose--it was a request rare enough to warrant favoring simplicity of the code base over feature creep. These days, the standard approach in CP 3.x is to subclass cherrypy.lib.sessions.FileSession (or one of the others), and add your own calls where you want them, then just stuff your new class into the sessions module via cherrypy.lib.sessions.MyFileSession = MyFileSession (and the config system will automatically pick it up). Robert Brewer fuman...@aminus.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
Re: [Web-SIG] Web Framework
On Sun, May 31, 2009 at 09:30:26AM -0700, Omar Munk wrote: - A good documentation. - Not to overkill like Django - Easy and simple - Just something like PHP but without the dirty style. - I like Karrigell but it looks like it's dead do you know a clone of it? - Not need a VPS to host it, just a server that has Python. I would still recommend Django. I think it's the best web-framework if you are beginning. It's not like PHP, but I don't know of anything like PHP in Python. And creating your own is that hard? Yes, it's hard, especially if you are new to web development. Cheers, -- Henry Pr?cheur ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
Re: [Web-SIG] Web Framework
Have you looked into T3? http://www.vimeo.com/2462041 http://web2py.appspot.com/t3/default/wiki/main If you know web2py it is based on it and uses the same syntax. This is an old app, to be considered experimental and we working on a new/improved version for it. https://launchpad.net/t4 Still it may be close to what you are looking for. Massimo On May 31, 2009, at 11:30 AM, Omar Munk wrote: Hello I'm Pynthon and I'm 14 years old. I'm coming from Holland so my English isn't very good. I'm looking for a good Python webframework. I liked Web2Py but it always can be better. I don't need a full admin app included. I just want to code it in my text editor just like PHP. Do you guys know a framework with: A good documentation. Not to overkill like Django Easy and simple Just something like PHP but without the dirty style. I like Karrigell but it looks like it's dead do you know a clone of it? Not need a VPS to host it, just a server that has Python. I know it's almost impposbile but I seached everywhere! And creating your own is that hard? Thanks, Pynthon ATT1..txt ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
Re: [Web-SIG] Web Framework
On Sun, May 31, 2009 at 12:30 PM, Omar Munk omar.webs...@gmail.com wrote: Hello I'm Pynthon and I'm 14 years old. I'm coming from Holland so my English isn't very good. I'm looking for a good Python webframework. I liked Web2Py but it always can be better. I don't need a full admin app included. I just want to code it in my text editor just like PHP. Do you guys know a framework with: A good documentation. Not to overkill like Django Easy and simple Just something like PHP but without the dirty style. I like Karrigell but it looks like it's dead do you know a clone of it? Not need a VPS to host it, just a server that has Python. I know it's almost impposbile but I seached everywhere! And creating your own is that hard? Bobo's main goal is simplicity: http://bobo.digicool.com/ Jim -- Jim Fulton ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
Re: [Web-SIG] Web Framework
Hey, this is more complex than web2py: @bobo.query('/') def hello(): return Hello world! In web2py you do not need the first line. ;-) Massimo On Oct 5, 2009, at 11:35 AM, Jim Fulton wrote: On Sun, May 31, 2009 at 12:30 PM, Omar Munk omar.webs...@gmail.com wrote: Hello I'm Pynthon and I'm 14 years old. I'm coming from Holland so my English isn't very good. I'm looking for a good Python webframework. I liked Web2Py but it always can be better. I don't need a full admin app included. I just want to code it in my text editor just like PHP. Do you guys know a framework with: A good documentation. Not to overkill like Django Easy and simple Just something like PHP but without the dirty style. I like Karrigell but it looks like it's dead do you know a clone of it? Not need a VPS to host it, just a server that has Python. I know it's almost impposbile but I seached everywhere! And creating your own is that hard? Bobo's main goal is simplicity: http://bobo.digicool.com/ Jim -- Jim Fulton ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/mdipierro%40cti.depaul.edu ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
Re: [Web-SIG] Web Framework
--- On Sun, 5/31/09, Omar Munk omar.webs...@gmail.com wrote: From: Omar Munk omar.webs...@gmail.com Subject: [Web-SIG] Web Framework To: web-sig@python.org Date: Sunday, May 31, 2009, 12:30 PM Hello A good documentation. Not to overkill like Django Easy and simple Just something like PHP but without the dirty style. I like Karrigell but it looks like it's dead do you know a clone of it? Hi Omar. Please have a look at WHIFF. It has a lot of PHP-like features, but it's better :). Please let me know what you think of it. I'd be especially interested if you find the documentation hard to understand -- please let me know where you got confused or whatever. Thanks. http://aaron.oirt.rutgers.edu/myapp/docs/W.intro By the way I agree that PHP is ugly and most Python frameworks are too complicated. I also think the only reason PHP is so popular is because there was never an appropriate Python based alternative for the kinds of things people like to do with PHP. This is the vacuum I'm trying to fill with WHIFF. -- Aaron Watters === less is more ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com
Re: [Web-SIG] Session events
This is supported at least here: http://docs.repoze.org/session/usage.html#using-begin-and-end-subscribers Alastair Bell Turner wrote: Hi I've been looking through the range of choices for Python web [application] frameworks/libraries (Just to have all the bases covered) for a new build project and standardisation of some small utilities. There's one feature that I'm not finding and was just wanting to check on before considering the joys of rolling my own: I'm not finding any support for user session events, I'm particularly interested in being able to register a handler on session expiry or cleanup. I've mainly been looking at the lighter weight frameworks since my requirement for the new build is mainly aggregate and list operations, so the least suitable load for ORMs. Have I missed the feature session event somewhere? Thanks Alastair Bell Turner ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/chrism%40plope.com ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com