MCPcopy Index your code
hub / github.com/fluentpython/example-code-2e / init

Function init

21-async/mojifinder/web_mojifinder.py:21–23  ·  view source on GitHub ↗
(app)

Source from the content-addressed store, hash-verified

19 name: str
20
21def init(app): # <4>
22 app.state.index = InvertedIndex()
23 app.state.form = (STATIC_PATH / 'form.html').read_text()
24
25init(app) # <5>
26

Callers 1

web_mojifinder.pyFile · 0.85

Calls 1

InvertedIndexClass · 0.90

Tested by

no test coverage detected