Plugins

Plugins

class heedy.plugins.Plugin(config=None, session='async')[source]

Bases: object

copy(session=None)[source]
fire(event)[source]

Fires the given event

async forward(request, data=None, headers={}, run_as=None, overlay=None)[source]

Forwards the given request to the underlying database. It only functions in async mode.

Returns the response.

hasAccess(request, scope)[source]
isAdmin(request)[source]
isApp(request)[source]
isUser(request)[source]
property name
notify(*args, **kwargs)[source]
objectRequest(request)[source]
query_as(accessor)[source]
async respond_forwarded(request, **kwargs)[source]

Responds to the request with the result of forward()