Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

add favicon fastapi

from fastapi import FastAPI
from starlette.responses import FileResponse

app = FastAPI()
favicon_path = 'favicon.ico'

@app.get('/favicon.ico')
async def favicon():
    return FileResponse(favicon_path)
Comment

PREVIOUS NEXT
Code Example
Python :: save dataframe to csv without index 
Python :: how to install panda3D 
Python :: reduced fraction python 
Python :: python get all file names in a dir 
Python :: remove unnamed column pandas 
Python :: django queryset average of unique values 
Python :: how to clear the console python 
Python :: built in functions python 
Python :: zipfile python 
Python :: remove unicode from string python 
Python :: nodemon python 
Python :: trim text python 
Python :: area of a circle in python 
Python :: python flat list from list of list 
Python :: python format only 1 decimal place 
Python :: tkinter execute function on enter 
Python :: convert int to byte python 
Python :: split list into list of lists python on every n element 
Python :: check column type pandas 
Python :: identity matrix in python 
Python :: python wait 5 seconds then display 
Python :: values outside range pandas 
Python :: how to cnovert a decimal to fraction python 
Python :: is string python 
Python :: sum of a column in pandas 
Python :: could not find runder jupyter notebook 
Python :: get from time secs and nsecs 
Python :: import pandas 
Python :: how to move mouse with pyautogui 
Python :: replace "-" for nan in dataframe 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =