MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / is_recognized_bot

Function is_recognized_bot

openlibrary/plugins/openlibrary/code.py:1083–1086  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1081
1082@public
1083def is_recognized_bot():
1084 # Reads from the request-scoped ContextVar set by set_context_from_legacy_web_py()
1085 # (web.py) or set_context_from_fastapi() — the web.py equivalent of web.ctx.
1086 return req_context.get().is_recognized_bot
1087
1088
1089def setup_template_globals():

Callers 1

__call__Method · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected