pyroclast.data
index
c:\users\brian\projects\pyroclast\data\__init__.py

Interface for package data stored in the "data" folder, providing methods to
both resolve and load data. For Pyroclast servers, this module supports
importing and serving data files contained in (or under) this directory.

 
Package Contents
       

 
Functions
       
get_path(data_path)
Returns the absolute path to the indicated data file stored under the
'data/' folder co-located with this module.
get_text(data_path)
Returns the text contents (as a string) of the given file stored under
the 'data/' folder co-located with this module.
serve(file_path)
Copies the given file to the 'data/' folder co-located with this module
so that it may be served by the Pyroclast REST-ful server.