Skip to content

FastAPI static file serving middleware with indexing files feature.

License

Notifications You must be signed in to change notification settings

mahyarkarimi/fastapi_static_files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Static File Serving

PyPI PyPI Downloads/month PyPI Downloads/week

📦 Installation

pip install fastapi_static_files

🔨 Usage

from fastapi import FastAPI
from fastapi_static_files import StaticIndexedFiles
app = FastAPI()

app.mount('/public', StaticIndexedFiles(directory="./public"), name="static")

🔗 Links