Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

first flask api

import flask

app = flask.Flask(__name__)
app.config["DEBUG"] = True


@app.route('/', methods=['GET'])
def home():
    return "<h1>Distant Reading Archive</h1><p>This site is a prototype API for distant reading of science fiction novels.</p>"

app.run()
Comment

PREVIOUS NEXT
Code Example
Python :: how to install pygame for python 3.8.5 
Python :: python how to tell if class is initialized 
Python :: python is not operator 
Python :: using ipfn in python 
Python :: Strings Formatting Old Way 
Python :: mlpclassifier check weights 
Python :: tweepy to dataframe 
Python :: how to reassign a key py 
Python :: python two list into dictinaray 
Python :: python Find Hash 
Python :: cgi in python; get() method 
Python :: create date range python 
Python :: problem 1 dot product python 
Python :: function print(text, times) 
Python :: pyfiglet not coming up cmd 
Python :: setheading in python 
Python :: voting classifier grid search 
Python :: split credit card number python 
Python :: vbscript shutdown remote computer 
Python :: how to place an id to every element in list in python 
Python :: how to element into the first index python 
Python :: Reading from a file way03 
Python :: how to vreate a list in python 
Python :: Python Raw string using r prefix 
Python :: Get Today’s Year, Month, and Date using today method 
Python :: python pynput hotkeys 
Python :: heksadesimal ke ascii 
Python :: python gambling machine 
Python :: decorrelation of data using PCA 
Python :: HIDING AND ENCRYPTING USING BASE24 MODULE 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =