views.py — flask Source File
Architecture documentation for views.py, a python file in the flask codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 9d82fd1b_821f_d941_5872_b33ece4b033f["views.py"] a58bd162_7fdf_eadb_8410_9102229ff561["a58bd162:7fdf:eadb:8410:9102229ff561"] 9d82fd1b_821f_d941_5872_b33ece4b033f --> a58bd162_7fdf_eadb_8410_9102229ff561 8c762fc5_c0b6_0d4d_3889_896d80fbf225["flask"] 9d82fd1b_821f_d941_5872_b33ece4b033f --> 8c762fc5_c0b6_0d4d_3889_896d80fbf225 style 9d82fd1b_821f_d941_5872_b33ece4b033f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from flask import jsonify
from flask import render_template
from flask import request
from . import app
@app.route("/", defaults={"js": "fetch"})
@app.route("/<any(xhr, jquery, fetch):js>")
def index(js):
return render_template(f"{js}.html", js=js)
@app.route("/add", methods=["POST"])
def add():
a = request.form.get("a", 0, type=float)
b = request.form.get("b", 0, type=float)
return jsonify(result=a + b)
Domain
Subdomains
Dependencies
- a58bd162:7fdf:eadb:8410:9102229ff561
- flask
Source
Frequently Asked Questions
What does views.py do?
views.py is a source file in the flask codebase, written in python. It belongs to the ApplicationCore domain, ExtensionRegistry subdomain.
What functions are defined in views.py?
views.py defines 2 function(s): add, index.
What does views.py depend on?
views.py imports 2 module(s): a58bd162:7fdf:eadb:8410:9102229ff561, flask.
Where is views.py in the architecture?
views.py is located at examples/javascript/js_example/views.py (domain: ApplicationCore, subdomain: ExtensionRegistry, directory: examples/javascript/js_example).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free