msaServer Module¶
.base
¶
Attributes¶
server_runner
module-attribute
¶
The created server instance
Functions¶
run ¶
run(
app_dir: str,
app: str = "app:app",
host: str = "127.0.0.1",
port: int = 8090,
server_type: str = "uvicorn",
)
Creates and starts a MSAServer Instance
PARAMETER | DESCRIPTION |
---|---|
app_dir |
The rootpath of your project, like: os.path.join(os.path.dirname(file))
TYPE:
|
app |
The module:application string, like 'app:app' or 'main:app'
TYPE:
|
host |
IP/FQDN the server runs on
TYPE:
|
port |
The port the server binds and listen to
TYPE:
|
server_type |
The string for the server type to use 'uvicorn', everything else starts a Gunicorn Server
TYPE:
|
Created: September 28, 2022