Spyce (software)


Spyce is technology similar to PHP that can be used to embed Python code into webpages. Spyce is free software, distributed under a BSD-style licence, with some additional restrictions about documentation notices.

Common Spyce embedding methods

Since Python uses indentation to determine the beginning and end of a block, Spyce includes several ways to embed Python code. Shown below are the three most common ways. Spyce supports ASP/JSP-style delimiters as well as double braces
The techniques above can be freely mixed and embedded in any HTML document.
Any legal Python code can be embedded and any Python module can be imported, which makes it especially suited for writing very robust applications.

Features

Some other features include custom tags, spyce lambdas and active handlers.

Requirements

Spyce brings Python's standard library and the programming language itself to the web. The minimum requirement is a working Python installation, although it can be used in conjunction with several web servers such as Apache and IIS in a variety of ways.
Configuration is done using Python modules that are imported by the web server during initialization, so all that is really required to get started with Spyce is basic knowledge of Python.