appserver
About
Application server framework help you write long run application.
Install
pip install appserver
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
workspace: /opt/application/workspace/
pidfile: /tmp/appname.pid
main: app.main
Create a new type server
from appserver import server
from appserver import set_default_config_path
from appserver import set_default_pidfile
from appserver import set_config_loader
from appserver 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()
Release files for appserver 0.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| appserver-0.4.6.tar.gz | 3.2 kB | Details |
Release files / appserver-0.4.6.tar.gz
| Download URL | appserver-0.4.6.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a7c11c9f052cfc43e432467daf486c8369d90d6b815273b07507645e141d647
|
|
BLAKE2b-256 checksum How to use checksums |
1ee31286419dceb9c9d085922c6217987068fee30d9a67c98d8277151a5a1866
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |