Skip to main content

A simple but full-featured web framework in Python

Project description

Karrigell is a simple, lightweigth and full-python web framework, including a
web server and an SQL database (gadfly). All you have to do is download, unzip and
do "python Karrigell.py" : no configuration headaches. It allows execution of Python
scripts and of pages mixing Python and HTML (PHP-like) ; easy handling of
authentication and sessions ; dbStorage, a Python objects / database interface
working with gadfly or SQLite (take a class instance, open a database and do
database.write(object), no SQL syntax required) ; building pages from components.
Powerful post-mortem debugger with script listing, data browsing. Complete
documentation and many demos included
Version 2.0.3 includes many bug fixes and some new features :
** Bug fixes **
- add handling of urls without extensions in the debugger and Include
- in the name space, the field names with a leading undercore were not cleaned after
script execution !
- restore original sys.path after script execution (once a script named myScript.py
had been imported from a directory, it was impossible to import another myScript.py
from another directory)
- debug level could not be set to 0 !
- bug in update() method for objects in dbStorage
- error classes in gadflyStorage and sqliteStorage were not correctly set
- the query string of the caller url was not included in the qs generated by the
join() method for Components
- removed the cache mechanism in IncludeComponent : event if the script has not
changed, its output may have (search in a database for instance)
- when a script is cached, the query string attribute must be reset
** New features **
- in init file, in the "global" option of section "Server", specify Python scripts
which will be imported before each script execution (allowing for user-defined
values available for all scripts)
- better exception handling if parsing error in PIH scripts
- terrific database management demo ! (undocumented yet)

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page