MCPcopy
hub / github.com/pallets/werkzeug / make_app

Function make_app

examples/manage-plnt.py:7–14  ·  view source on GitHub ↗

Helper function that creates a plnt app.

()

Source from the content-addressed store, hash-verified

5
6
7def make_app():
8 """Helper function that creates a plnt app."""
9 from plnt import Plnt
10
11 database_uri = os.environ.get("PLNT_DATABASE_URI")
12 app = Plnt(database_uri or "sqlite:////tmp/plnt.db")
13 app.bind_to_context()
14 return app
15
16
17@click.group()

Callers 5

runserverFunction · 0.70
initdbFunction · 0.70
runserverFunction · 0.70
shellFunction · 0.70
syncFunction · 0.70

Calls 3

bind_to_contextMethod · 0.95
PlntClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected