Brainless blowing FastAPI performance flash? On the inappropriate performance comparison on the Internet and the self-test results that confused me
I've heard of it more than once. There is a FastAPI framework, which can crush flash and catch up with Golang, but it has not been tested. Today, I'm free to test and see the results. I don't know what went wrong, but I was surprised.Before testingIn order to be lazy, I naturally want to find the previous test code from the Internet as a refere ...
Posted by shamuraq on Sun, 05 Dec 2021 09:52:55 -0800
Flask framework learning notes
Flask is a lightweight Web application framework written in Python, which can quickly implement a website or Web service using Python language.
1, Introduction
Directory framework (simplest) Flask-demo/ ♪ run.py: application launcher ♪ config.py: environment configuration ├ static/ │♪ css /: css file directory │♪ img /: picture file dire ...
Posted by Rollo Tamasi on Sun, 05 Dec 2021 00:14:49 -0800
Use python's flask framework for redis seconds killing scenarios
Recently, I want to make a redis second killing scene with a page for my students. Many of them are java on the internet. Because recently my students are also learning python, I want to write a page with python's related web framework and implement the redis cache database to support second killing scene.
The effect of the page is as follows: ...
Posted by wyrd33 on Sat, 04 Dec 2021 09:54:45 -0800
Analysis of DSL&CONF configuration parameters of Federated learning fat and job
1. Job concept
When using fat to start a training model task (Job), two parameter files must be: dsl and conf(Task Submit Runtime Conf); Task startup flowchart:
2. About DSL language
DSL & task submit runtime conf setting V2 In order to make the construction of task model more flexible, fat uses a set of self-defined domain specific lan ...
Posted by Lumio on Sat, 20 Nov 2021 14:06:23 -0800
Flash source code reading notes
This article is based on flash version 0.3.
Let's first look at an official example:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
So what's going on here? Enter the source code to find out.
This is the module that Flask depends on. You can see ...
Posted by vinodkalpaka on Fri, 29 Oct 2021 01:19:21 -0700
Routing management of flash framework
preface
Over the past few years, I have been struggling in the it industry. Along the way, many have summarized some high-frequency interviews in the python industry. I see most of the new blood in the industry, and I still have all kinds of difficult questions for the answers to all kinds of interview questions or collection
Therefore, I dev ...
Posted by Sako on Tue, 26 Oct 2021 21:56:56 -0700
State retention, exception handling and request hook
catalogue
1, State retention
1. HTTP protocol
2. cookie status hold
Set cookie return
Save Cookies
Not saved
Saved
3. session state hold
You need to set the secret key before storing the session
4. Exception handling
Custom 500
Custom 404
5. Hook function
Before being accessed for the first time, the hook function
H ...
Posted by Biocide on Tue, 26 Oct 2021 04:29:58 -0700
Train your dataset with yolov5 and deploy yolov5 through flash
Use yolov5 to train your own dataset (detailed process) and deploy yolov5 through flash
github project address
Use yolov5 to train your own data set (detailed process) and deploy it through flash
1. Prepare data set
PASCAL VOC
In this paper PASCAL VOC extraction code: 07wp Take the dataset as an example. Put the dataset under the project d ...
Posted by sentback on Sat, 23 Oct 2021 02:48:39 -0700
Reread Dog Book 3-Web form
Web form
Cross Site Request Forgery protection
By default, flask WTF can protect all forms from Cross Site Request Forgery (CSRF) attacks. When a malicious website sends a request to another website that the attacker has logged in, it will trigger a CSRF attack. In order to implement CSRF protection, the flash WTF program needs to set a key. ...
Posted by hach22 on Tue, 19 Oct 2021 00:17:18 -0700