Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.
/ ElRunner Public archive

Who runs python scripts in secure environment

License

Notifications You must be signed in to change notification settings

I1820/ElRunner

Repository files navigation

ElRunner

Travis branch Go Report Codacy Badge Buffalo Docker Pulls

Introduction

ElRunner runs Python3 code when specific events come, but it ensure you, you will have one instance of your code in running state. its provides runtime python library [runtime.py] for you application in order to have required packages and functions.

Environment Variables

These variables are avaiable in container:

  • Project ID: NAME
  • User Email: USER
  • Redis Host: REDIS_HOST
  • Mongo URL: MONGO_URL

Decode/Encode

ElRunner can decode/encode your data with your given codec in python.

from codec import Codec
import cbor

class ISRC(Codec):
    def decode(self, data):
        return cbor.loads(data)
    def encode(self, data):
        pass

Scenario

ElRunner can run your given scenario on data comming events or periodically.