API Reference¶
Woodstove.App¶
-
class
woodstove.app.App(path, namespace=None, merge=False)¶ Example: - class MyApp(object):
wsapp = App(‘/foo’)
@wsapp.get(‘/’) def foo(self):
return “foobar”
Initialize this App instance, with the given
path, and optionally the givennamespace.Parameters: - path – Mount point for this application.
- namespace –
- merge – Merge the routes from this app into the parent application.
-
__dict__= dict_proxy({'logger': <logging.Logger object at 0x7f11d6518ed0>, '__module__': 'woodstove.app', '_load_args': <function _load_args at 0x7f11d653d410>, 'get': <function get at 0x7f11d653d668>, '_do_auth': <function _do_auth at 0x7f11d653d488>, 'route': <function route at 0x7f11d653d5f0>, 'args': <function args at 0x7f11d653d848>, 'request': <property object at 0x7f11d653faf8>, 'auth': <function auth at 0x7f11d653d8c0>, 'server': None, '__dict__': <attribute '__dict__' of 'App' objects>, 'put': <function put at 0x7f11d653d758>, 'async': <function async at 0x7f11d653d578>, 'post': <function post at 0x7f11d653d6e0>, '__weakref__': <attribute '__weakref__' of 'App' objects>, '__doc__': '\n \n :Example:\n\n class MyApp(object):\n wsapp = App(\'/foo\')\n\n @wsapp.get(\'/\')\n def foo(self):\n return "foobar"\n ', '__init__': <function __init__ at 0x7f11d653d398>, 'delete': <function delete at 0x7f11d653d7d0>})¶
-
__init__(path, namespace=None, merge=False)¶ Initialize this App instance, with the given
path, and optionally the givennamespace.Parameters: - path – Mount point for this application.
- namespace –
- merge – Merge the routes from this app into the parent application.
-
__module__= 'woodstove.app'¶
-
__weakref__¶ list of weak references to the object (if defined)
-
args(body=None, query=None)¶
-
async()¶ Return a job record that has been passed to a worker
-
auth(acl=None)¶
-
delete(path, **options)¶
-
get(path, **options)¶
-
logger= <logging.Logger object>¶
-
post(path, **options)¶
-
put(path, **options)¶
-
request¶
-
route(path, method, **options)¶
-
server= None¶