https://github.com/mahyarkarimi/fastapi_static_files
FastAPI static file serving middleware with indexing files feature.
https://github.com/mahyarkarimi/fastapi_static_files
fastapi python static-file-server
Last synced: 11 months ago
JSON representation
FastAPI static file serving middleware with indexing files feature.
- Host: GitHub
- URL: https://github.com/mahyarkarimi/fastapi_static_files
- Owner: mahyarkarimi
- License: mit
- Created: 2022-10-12T05:40:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-05-14T13:51:03.000Z (about 1 year ago)
- Last Synced: 2025-06-16T12:05:18.601Z (about 1 year ago)
- Topics: fastapi, python, static-file-server
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI Static File Serving
[](https://github.com/mahyarkarimi/fastapi_static_files/blob/master/LICENSE)
[](https://pypi.org/project/fastapi_static_files/)
[](https://pepy.tech/project/jacoco-badge-generator)
[](https://pepy.tech/project/jacoco-badge-generator)
## 📦 Installation
```
pip install fastapi_static_files
```
## 🔨 Usage
```python
from fastapi import FastAPI
from fastapi_static_files import StaticIndexedFiles
app = FastAPI()
app.mount('/public', StaticIndexedFiles(directory="./public"), name="static")
```
## 🔗 Links
- [Pypi Page](https://pypi.org/project/fastapi-static-files/0.1.0/)