Simple command line utility to run Bjoern WSGI

Kapustlo c934f85217 exit > sys.exit il y a 2 ans
bjcli c934f85217 exit > sys.exit il y a 2 ans
scripts 5bb4f07c82 Added helper scripts il y a 2 ans
tests 276e30f527 Simplified test app il y a 2 ans
.gitignore 49a897a08f Ignored pyright config il y a 2 ans
LICENSE 7c39a99e55 Initial commit il y a 2 ans
README.md 9fa039a775 Refactoring (dropped support for Python3.8) il y a 2 ans
requirements.txt 2d434b4347 Added wheel to requirements il y a 2 ans
setup.py d7d360e39d Fixed classifiers il y a 2 ans

README.md

bjcli

bjcli is a simple command line utility to run Bjoern WSGI server

Features

  • Forks
  • Environment variables support

Installation

pip install bjcli

Usage

bjcli -w 4 -i 127.0.0.1 -p 8088 app.wsgi:application

Using sockets

bjcli -w 4 -i unix:/path/to/socket app.wsgi:application

Examples above would import application from app.wsgi and pass it to Bjoern

Argument Description Required Default Type
-w Number of workers False 1 int
-i Host False 127.0.0.1 str
-p Port. If left blank and the host is an IP address, 8088 is assigned False None None/int
module:wsgi_app (first positional) Module containing "wsgi_app" (module attr name after ":") True - module