Skip to main content

Application server framework help you write long run application.

Project description

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

NOTICE

Application renamed to appstart, see detail at https://github.com/appstore-zencore/appstart.

About

Application server framework help you write long run application.

Install

pip install appserver

Usage

E:\zencore>apprun
Usage: apprun [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.

Source Distribution

appserver-0.2.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file appserver-0.2.1.tar.gz.

File metadata

  • Download URL: appserver-0.2.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appserver-0.2.1.tar.gz
Algorithm Hash digest
SHA256 299f817f8d277b233e56112bee86a872342104d92dcdffb9672ae24aa5526cff
MD5 0b91905ad7ae3fb3b73b879b0663eaae
BLAKE2b-256 91144b275112d32e5fd7c0162ac11892042a70f2ed06b9eea6ac2fa73c0b0e31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page