Skip to content

Simple, lightweight, AWS serverless CD framework.

Notifications You must be signed in to change notification settings

mathix420/pylone

Repository files navigation

Pylone icon

PYLONE

Python CD framework

Pypi Docker Pulls

wakatime Maintainability

Features

  • Publish, update and delete Lambdas
  • Publish, update and delete Layers
  • Doppler integration
  • Simple and light wieght
  • Multi stages lambdas
  • Before/after deploy hooks

Install

pip install pylone

Usage

Pylone usage

pylone -h

Template reference

stages global parameter

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

source parameter

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

source: ./bin

before-script parameter

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 parameter

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

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

bucket-name parameter

Default value: pylone-bucket

Allows you to choose the bucket name where pylone will upload zip files.

bucket-name: tmp-pylone-files

DX

VSCode config

.vscode/settings.json

{
    "yaml.customTags": [
        "!env scalar"
    ]
}

Dev Guide

Deploy new version

  1. Bump version in setup.py
  2. Commit and push to master
  3. Create a new github release + tag using this format vX.X.X
  4. Github Action will take care of the rest!