Skip to main content

Larus is a simplified Gunicorn clone

Project description

### Introduction

Larus is a simplified Gunicorn clone, wrote cause I’m boring.

### Install

From PyPI:

$ pip intsall larus

From source:

$ python setup.py install

### Usage

Usage: larus [OPTIONS] MODULE_APP

Options:
-w, --workers INTEGER

number of workers, default: 1

-b, --bind TEXT

address to bind: host:port, default: 127.0.0.1:8000

-c, --chdir TEXT

change the working director

--help

Show this message and exit.

For example, if myapp.py contains the wsgi app app, we can serve it with larus with:

larus myapp:app

with 4 workers and bind to 0.0.0.0:5000:

larus -w 4 -b 0.0.0.0:5000 myapp:app

### Signals

You can use signals to dynamically increment or decrement the number of workers while serving:

  • TTIN: Increment the number of workers by one

  • TTOU: Decrement the number of workers by one

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

larus-0.1.0.tar.gz (12.8 kB view hashes)

Uploaded Source

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