MCPcopy
hub / github.com/hugapi/hug / api

Function api

hug/directives.py:73–75  ·  view source on GitHub ↗

Returns the api instance in which this API function is being ran

(default=None, api=None, **kwargs)

Source from the content-addressed store, hash-verified

71
72@_built_in_directive
73def api(default=None, api=None, **kwargs):
74 """Returns the api instance in which this API function is being ran"""
75 return api if api else default
76
77
78@_built_in_directive

Callers 2

callFunction · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by 1

callFunction · 0.56