Python Pages is a web framework entirely written in Python. It should compete with other frameworks like Django and Pylons, but has its own strong points.
The templating is different from other frameworks. Every page is a file, and it can define placeholders for pages derived from this page. Pages also can include other pages like some kind of embedded controls, and at the same time passing some placeholder implementations. Every page can also embed Python code.
It doesn't need a database, but since everything is Python, you can easily add your favorite database library.
The output is always valid XHTML. Every page can add filters to manipulate this XML tree after creation. For example, this is used to insert CSS references, insert benchmark results and highlight the content blocks.
Some features:
- Session management
- Built-in HTTP/1.1 web server
- Auto recompilation of changed pages, no need to restart the server
- Templating: master pages, placeholders, pages as embedded controls, meta data for every page, embed Python code
- Reflexion: pages can query information of other pages
- Output filters: manipulate the generated XML tree afterwards
- Write all URLs relative to the page from where they've been created, not to the page from which initially included the other pages.
Go to the Python Pages homepage. Both this website and the Python Pages site is written entirely with the framework.
