Skip to main content

Zencore Application Server.

Project description

https://travis-ci.org/appstore-zencore/zas.svg?branch=master

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
zas-0.2.0.tar.gz (3.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page