Flask-LND initializes an LND gRPC interface using Will Clark's lnd-grpc package.
$ pip install flask-lnd
import flask
from flask_lnd import LNDNode
app = flask.Flask(__name__)
lnd = LNDNode()
lnd.init_app(app)
@app.route('/')
def index():
return str(lnd.rpc.get_info())