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

Uploaded Source

File details

Details for the file larus-0.1.0.tar.gz.

File metadata

  • Download URL: larus-0.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for larus-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc5e94d78ed739022c018719ace6577ec185f436907474f1ef3b13a934b56e82
MD5 945760331ff8bd1b96ee067215a6fc14
BLAKE2b-256 d26b26b255b84450b7613e0c70c8ea2c4f0be47660d77b35fc443a96c3089ed7

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