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 | ||||||
|
Functions | ||
|
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>} |