What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-13 16:26:21
how to make a flask server in python
# This is the code # Find me on discord ZDev1#4511 # We shouldn't install flask in the terminal, it is already imported from flask import Flask app = Flask(__name__) # route @app.route('/') # route function def home(): # send 'hey!' return 'hey!' #... Add solution -
Python 2021-11-09 21:13:22
jwt authentication python flask
from flask import Flask from flask_jwt import JWT, jwt_required, current_identity from werkzeug.security import safe_str_cmp class User(object): def __init__(self, id, username, password): self.id = id self.username = username ... Add solution -
Python 2021-11-05 11:34:08
simple flask app
# Extremely simple flask application, will display 'Hello World!' on the screen when you run it # Access it by running it, then going to whatever port its running on (It'll say which port it's running on). from flask import Flask app = Flask(__name__) @a... Add solution -
Python 2021-11-02 19:46:23
how to monitor a website traffic python
from flask import Flask, render_template, request, session, jsonify import urllib.request from pusher import Pusher from datetime import datetime import httpagentparser import json import os import hashlib from dbsetup ... Add solution -
Python 2021-10-21 06:57:04
create internal etl for people to upload data with python and flask
from flask import Flask, render_template, requestfrom werkzeug import secure_filenameapp = Flask(__name__)@app.route('/upload')def upload_file(): return render_template('upload.html') @app.route('/uploader', methods = ['GET', 'POST'])def upload_file(): ... Add solution -
Python 2021-10-20 16:58:10
display flask across network
from flask import Flask app = Flask(__name__) @app.route('/') def index(): return "Hello world!" if __name__ == '__main__': app.debug = True app.run(host="0.0.0.0") #host="0.0.0.0" will make the page accessable ... Add solution
Best helpers
Joker13
+5
Remmy Kasili
+5
Anand GV
+5
Manx rat
+5
Jokim
+5
Nitro2k01
+5
Letomkov
+5
Glob Cropper
+5