| [ Web Proxy ] |
| Viewing: https://wiki.python.org/moin/../python/platforms/MacPython/../../../python/archive/Castalian.html | [Back] [Original] |
Legacy Wiki Page
This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.
A framework for WebProgramming.
0.5 (2002-07-01)
Python
Apache (developed on Linux, but should work with Windows etc too)
2.0 or better
<?cas
response.write("And from the Castalian corner: Hello, World!<br>")
?>
Should work with any Web server that supports CGI and Apaches Action directive only tested on Apache/Linux.
An easy way to embed Python in your HTML pages, Castalian is particularly suitable for coders used to Microsofts Active Server Pages, as it provides (most of) the ASP object model if youre used to using request.querystring, response.write and so forth, but want to code in Python, youll love Castalian.
Presentation oriented embed Python directly in your HTML pages, like PHP or Microsofts ASP.
You have read access from the ASP-a-like request.servervariables, but you can also use the Pythonic os.environ to make changes if required.
Sessions are currently not supported.
Outside Castalians scope persist objects as you would in any other Python application.
HTML with embedded Python, which looks much like PHP. To run Python code in your pages, just enclose in <?cas and ?> tags.
Castalian is an engine that allows you to embed Python in HTML pages, and also provides (an approximation to) the Active Server Page object model. Documentation for the object model and Castalian generally is available with the package. Castalian is very easy to install simply drop the CGI in place on your web server and point .cas files to it. This simplicity comes at a speed price, though; it is a little slower than frameworks that use mod_python or similar methods. This is unlikely to be a problem for sites not serving vast numbers of users. (sil Castalian author)
2026, Python Software Foundation
Made with Sphinx and Shibuya theme.
| Web Proxy Viewer | New URL | Original Page |