Differences between revisions 50 and 51
Revision 50 as of 2008-04-27 09:03:25
Size: 4409
Comment:
Revision 51 as of 2008-11-15 14:01:16
Size: 4411
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
version::2.4.0 (''[[Date(2008-04-12T15:00:00Z)]]'') version::2.4.0 (''<<Date(2008-04-12T15:00:00Z)>>'')
Line 17: Line 17:
No requirement besides Python : Karrigell is provided with a web server and a Python database engine (["PyDbLite"]). It can also run behind Apache, LighTPD and Xitami No requirement besides Python : Karrigell is provided with a web server and a Python database engine ([[PyDbLite]]). It can also run behind Apache, LighTPD and Xitami
Line 47: Line 47:
Karrigell is provided with the pure-Python ["PyDbLite"] database engine Karrigell is provided with the pure-Python [[PyDbLite]] database engine
Line 67: Line 67:
 * a built-in, pure-Python database engine (["PyDbLite"]) is included for demos and RAD, although users can link to any base they like provided there is a Python API for it  * a built-in, pure-Python database engine ([[PyDbLite]]) is included for demos and RAD, although users can link to any base they like provided there is a Python API for it
Line 78: Line 78:
[http://www.webfaction.com WebFaction] supports Karrigell [[http://www.webfaction.com|WebFaction]] supports Karrigell

Masthead

URL:: http://www.karrigell.com

version::2.4.0 (2008-04-12)

licence::BSD revised

platforms::any platform that supports Python 2.3

Python versions::2.3 and above

Deployment Platforms

No requirement besides Python : Karrigell is provided with a web server and a Python database engine (PyDbLite). It can also run behind Apache, LighTPD and Xitami

Suitability

Web programming

Demos included in the distribution include a Wiki server, Kwiki (a sort of Wiki, but with the wysiwyg editor FCKEditor), a forum, a calendar, an interface for script internationalization, and a portal with user login/logout, personalization and news editing

Development Interfaces

Servlet-style : the scripts, either pure Python or mixing HTML and Python, are executed in a namespace which provides all useful information, including HTTP headers, authentication data, etc. For instance, form fields are available as the QUERY dictionary, or with a variable with a leading underscore (the field myField is available as _myField, either a string or a list depending on the field type)

The namespace also provides custom exceptions to stop its execution, such as HTTP_REDIRECTION (see the on-line documentation)

A function Include(script_or_file, **args) allows the inclusion of an html file or of a file inside a script. If script B is included inside script A, it is executed in script A's namespace ; additional **args can be added to this namespace

Environment Access

Standard Python mechanisms : environment data is available in the namespace where scripts are executed

Session, Identification and Authentication

Provided through functions available in scripts

Session() returns a session object, to which attributes can be set (arbitrary Python objects : user login, database connexion and cursor, etc.)

A user management framework allows the site administrator to manage a user database with roles(admin, editor, visitor). In scripts, function Login(role) checks if user is logged in with the specified role, or redirects to an authentication script ; Role() returns user's role

Persistence Support

Karrigell is provided with the pure-Python PyDbLite database engine

It can be linked to all databases for which there is a Python API (SQLite, MySQL, PostGres, etc)

Presentation Support

  • Python scripts, where the "print" statement is used to send output to the client
  • "Karrigell services" : Python scripts where functions are mapped to URLs (allows to build a whole site with just one script)
  • "Python Inside HTML" (PIH) which looks like PHP, ASP, etc : HTML code with Python code inserted inside <% and %>, with shortcuts for variables : <%= myVar %> and for translated strings which use the gettext mechanism (for which Karrigell provides a simple interface) : <%_ "string to translate" %>

  • "HTML Inside Python" which are Python scripts, except that the lines beginning with a string are sent to standard output as if there were a "print" statement before
  • plain CGI scripts, running much faster than usual because the interpreter is not loaded for each request

InTheirOwnWords

Karrigell aims at simplicity for web developers :

  • a built-in web server, interfaces to run behind Apache, LightTPD, Xitami
  • a built-in, pure-Python database engine (PyDbLite) is included for demos and RAD, although users can link to any base they like provided there is a Python API for it

  • a namespace for Python scripts in which developers will find all useful data and functions for the most ordinary tasks
  • a way to nest pages and scripts with the Include() function

The inspirations were EasyPHP, a package which provides Apache, PHP, mySql and PHPmyAdmin all in one, and saves the pain of installing each of them and make them all work together ; the wittily named Poor Man's Zope (PMZ) which showed how easy it was to make Python servlets (unfortunately unmaintained) ; and the pleasure I have programming things in Python

Performance and stability have been very much improved since the first versions. Karrigell can now be safely used in production environments

Comments

Hosting

WebFaction supports Karrigell

Karrigell (last edited 2010-08-15 09:32:33 by 222)

Unable to edit the page? See the FrontPage for instructions.