Skip to content
/ starcorn Public

Simple asynchronous static files server based on starlette, uvicorn

Notifications You must be signed in to change notification settings

qmel/starcorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Starcorn

Starcorn is a simple asynchronous (ASGI) static files web server based on starlette and uvicorn

Dependencies

Tested on Ubuntu 24.04 LTS, Debian 11 and Windows 7

Usage

Running server user-only

pip install starlette
pip install uvicorn

git clone https://github.com/qmel/starcorn
cd starcorn
./starcorn.py staticdir [UVICORN_OPTIONS: --host, --port, etc.] 

staticdir will be mounted as the root directory of your website
UVICORN_OPTIONS are arguments passed to uvicorn web server, see their docs or use ./starcorn.py --help. By default the server runs on 127.0.0.1:8000.

Installing system-wide server service

sudo apt install python3-starlette
sudo apt install python3-uvicorn

git clone https://github.com/qmel/starcorn
cd starcorn
sudo ./install_service.sh staticdir [UVICORN_OPTIONS: --host, --port, etc.]

starcorn.service will be put in systemd directory and loaded

About

Simple asynchronous static files server based on starlette, uvicorn

Topics

Resources

Stars

Watchers

Forks

Contributors