Application server framework help you write long run application.
Project description
About
Application server framework help you write long run application.
Install
pip install appstart
Usage
E:\zencore>appserver
Usage: appserver [OPTIONS] COMMAND [ARGS]...
Options:
-c, --config FILENAME Config file path, use yaml format. Default to
config.yaml.
--help Show this message and exit.
Commands:
reload Reload application server.
start Start application server.
stop Stop application server.
Example Config
application:
deamon: true
pidfile: /tmp/appname.pid
main: app.main
Create a new type server
from appstart import server
from appstart import set_default_config_path
from appstart import set_default_pidfile
from appstart import set_config_loader
from appstart import default_config_loader
def helloserver_loader(config):
data = default_config_loader(config)
data["server-name"] = "hello server v1.0.0"
return data
if __name__ == "__main__":
set_default_config_path("/etc/helloserver.yaml")
set_default_pidfile("/var/run/helloserver.pid")
set_config_loader(helloserver_loader)
server()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
appstart-0.3.1.tar.gz
(3.2 kB
view details)
File details
Details for the file appstart-0.3.1.tar.gz.
File metadata
- Download URL: appstart-0.3.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9e023f06fa9fa130064dc60e3b53e389011cb5600cb77475f38dd8a51a48e2a
|
|
| MD5 |
88c955656516fa3a796ffeb85cccc561
|
|
| BLAKE2b-256 |
bb323b43989dbeb2d3acf005b5c4b32a132b03a302b932638281d45f24bd2414
|