It's a peach

Static Files

The package to handler static files is bareASGI-static.


The package can be installed as follows.

pip install bareasgi-static


Use the helper method to add support.

import os.path
import uvicorn
from bareasgi import Application
from bareasgi_static import add_static_file_provider

here = os.path.abspath(os.path.dirname(__file__))

app = Application()
add_static_file_provider(app, os.path.join(here, simple_www)), port=9010)