Pylone

Description

Pylone is a simple tool to manage serverless functions easily and fastly.

It's build to be totally cloud agnostic, and managed by a single template file.

In opposition to Serverless, there are no fancy config options, just the bare minimum.

What you can do with Pylone:

  • Host and update Functions, APIs, and Layers.
  • Run custom shell scripts before or after the update.
  • Manage multiple Functions, Layers, or APIs in the same repo easily.
  • Create a template with a simple CLI.

Installation

Only tested with python 3.7.

pip3 install pylone

Usage

pylone -h

Template reference

Stages

You can set the stages parameter to have a multistage project

stages:
    - dev # first one is used as default stage
    - prod # all other stages are more advanced stages

Sources

You can use the source parameter to force a directory to be used as source

source: ./bin

Before script

You can use the before-script parameter to execute a bash script before processing an entity

before-script: ./script.sh
# OR
before-script: "echo 'Starting ...'"

After script

Similar as before-script but launch script at the end of process

after-script: ./script.sh
# OR
after-script: "echo 'END of process'"