Zencore Application Server
Install
pip install zas
Usage
E:\zas\src\scripts>python zas.py
Usage: zas.py [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 zascore import server
from zascore import set_default_config_path
from zascore import set_default_pidfile
from zascore import set_config_loader
from zascore 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 zas 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zas-0.2.0.tar.gz | 3.2 kB | Details |
Release files / zas-0.2.0.tar.gz
| Download URL | zas-0.2.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d016aaf6c027037416754464fee573db9eb5e92af629cecc5f5aa1b4fe2e302
|
|
BLAKE2b-256 checksum How to use checksums |
2c44cc68091a7953f1f78703ee54b6348e8400ce16372e417e4b8424efe4ee2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |