Spyce

SpyceWebsite| http://spyce.sourceforge.net/

|

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.[1][2][3][4][5][6]

## Contents

* 1 Common Spyce embedding methods
* 2 Features
* 3 Requirements
* 4 See also
* 5 References
* 6 External links

## 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 (`<%` and `%>`) as well as double braces (`` and ``)

1. Python 'chunks' (multiple Python statements with traditional indentation):

It's <b>[[\

from time import asctime, localtime
print(asctime(localtime()))

]]</b> right now!

It's <b><%\

from time import asctime, localtime
print(asctime(localtime()))

%></b> right now!

2. Individual statements within delimiters (indentation not required):

for x in xrange(3): {
<b>Hello, </b>

<% for x in xrange(3): { %>
<b>Hello, </b>
<% } %>

3. Expressions evaluation

<b>I am = 5*3 years old.</b>

<b>I am <%= 5*3 %> years old.</b>

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 (using exception handling and unit testing single modules individually).

## Features

Some other features include custom tags (ala JSP), spyce lambdas and active handlers (reminiscent of ASP).

## Requirements

Spyce brings Python's standard library and the programming language itself to the web. The minimum requirement is a working Python installation (it ships with a standalone web server written in Python that can be used during development), 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.

## See also

* mod python

## References

1. ↑ Spyce - Python Server Pages (PSP)
2. ↑ Petreley, Nicholas (2002-11-11). "PHP and Python Hit Prime Time" (in en). https://www.computerworld.com/article/2578164/php-and-python-hit-prime-time.html.
3. ↑ "Release (#25976) - Spyce - Python Server Pages - OSDN" (in en). https://osdn.net/projects/freshmeat_spyce/releases/25976.
4. ↑ "SPYCE - Python Server Pages". https://www.onworks.net/software/app-spyce-python-server-pages.
5. ↑ "Spyce Development Tips and Techniques". http://www.neotitans.com/resources/python/spyce-tips-and-techniques.html.
6. ↑ Lutz, Mark; Ascher, David (2003-12-23) (in en). Learning Python. "O'Reilly Media, Inc.". ISBN 978-0-596-55193-3. https://books.google.com/books?id=ftA0yk1Z92wC&q="Spyce"+software+-wikipedia&pg=PT556.

## External links

* v
* t
* e

Web frameworks

* Comparison

C++|

* CppCMS
* Wt

CLI|

* ASP.NET
* Core
* AJAX
* Dynamic Data
* MVC
* Razor
* Web Forms
* DNN
* BFC
* MonoRail
* OpenRasta
* Umbraco
* WebSharper

ColdFusion|

* CFWheels
* ColdBox Platform
* ColdSpring
* Fusebox
* Model-Glue

Common Lisp|

* Caveman2
* CL-HTTP
* Weblocks

Haskell|

* Yesod
* Snap

Java|

* AppFuse
* Flexive
* Grails
* GWT
* ICEfaces
* ItsNat
* JavaServer Faces
* JHipster
* Jspx
* JWt
* OpenXava
* Play
* Remote Application Platform
* RIFE
* Seam
* Sling
* Spring
* Stripes
* Struts
* Tapestry
* Vaadin
* Vert.x
* WebWork
* Wicket
* WaveMaker
* ZK

JavaScript|

* Angular/AngularJS
* Backbone.js
* Chaplin.js
* Closure
* Dojo Toolkit
* Ember.js
* Express.js
* Ext JS
* jQuery
* Knockout.js
* Meteor
* MooTools
* Node.js
* OpenUI5
* Prototype
* React
* Rico
* script.aculo.us
* Sencha Touch
* SproutCore
* Svelte
* Vue.js
* Wakanda

Perl|

* Catalyst
* Dancer
* Mason
* Maypole
* Mojolicious
* WebGUI

PHP|

* CakePHP
* CodeIgniter
* Drupal
* Fat-Free
* FuelPHP
* Flow
* Grav
* Gyroscope
* Horde
* Joomla
* Kohana
* Laravel
* Lithium
* Midgard
* MODX
* Nette
* Phalcon
* PHP-Fusion
* Pop PHP
* PRADO
* ProcessWire
* Qcodo
* Silex
* SilverStripe
* Symfony
* TYPO3
* WordPress
* XOOPS
* Yii
* Zend Framework

Python|

* BlueBream
* CherryPy
* Django
* Flask
* Grok
* Nevow
* Pyjs
* Pylons
* Pyramid
* Quixote
* TACTIC
* Tornado
* TurboGears
* web2py
* Webware
* Zope 2
* more...

Ruby|

* Camping
* Merb
* Padrino
* Ruby on Rails
* Sinatra

Scala|

* Lift
* Play
* Scalatra

Smalltalk|

* AIDA/Web
* Seaside

Other languages|

* Vibe.d (D)
* Application Express (PL/SQL)
* Grails (Groovy)
* Kepler (Lua)
* OpenACS (Tcl)
* Phoenix (Elixir)
* SproutCore (JavaScript-Ruby)
* Yaws (Erlang)

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Spyce&oldid=683586"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template