pyroclast.server
index
c:\users\brian\projects\pyroclast\server.py

Defines the primary entry point for starting a Pyroclast REST-ful server
based on CherryPy's WSGI webserver implementation. File extensions determine
how requests are routed to different parsers, defined in either the
dataTables module or the objectHierarchies module (depending on the format).

 
Modules
       
pyroclast.basic
cherrypy
pyroclast.dataTables
pyroclast.objectHierarchies
ntpath
sys

 
Functions
       
application(env, start_response)
Defines the WSGI-based server application that routes queries to the
appropriate parser based on file extension.
null(file, filters)
parseQueryValues(query)
Returns a copy of the query dictionary for which values in key-value
pairs have been parsed from string representations into primitives.
start(host='127.0.0.1', port=1337)
Initializes a pyroclast server using CherryPy's WSGI webserver. Defaults
to hosting on 127.0.0.1 at port 1337, which can be changed using this
function's parameters.

 
Data
        mimeTypes = {'.csv': 'text/plain', '.json': 'text/plain', '.sql': 'text/plain', '.unq': 'text/plain', '.xls': 'text/plain', '.xlsx': 'text/plain', '.xml': 'text/plain'}
parsers = {'.csv': <function getCsv>, '.ico': <function null>, '.json': <function getJson>, '.sql': <function getSqlite>, '.unq': <function getUnqlite>, '.xls': <function getExcel>, '.xlsx': <function getExcel>, '.xml': <function getXml>}