Skip to main content

Distribute large python execution in task

Project description

Welcome to PyPillar's documentation!

This is an open source REST tool which allow to run any python script as a distributed task to monitor its all events during execution.

.. toctree:: :maxdepth: 2 :caption: Contents:

Why PyPillar

This is an open source REST tool which allow to run any python script as a distributed task to monitor its all events during execution.

#. Priceless and its free #. Distribute your large python script in several task #. Monitor task logs #. Investigate python task exception. #. Investigate requests history in future at any point of time. #. Create multiple projects. #. Live code editor which allow to change code associated with task. #. Quickly and easily run REST to test the REST api.

Installation

.. code-block:: shell

pip install pypillar

Start Server

To start PyPillar server run below command in terminal

.. code-block:: shell

pypillar run

It will expose the server in http://localhost:5000

PyPillar Runtime Task Input

Suppose you want to pass transformed input from Task1 to Task2 and finally you want result then below is the example.

.. code-block:: shell

Task1 python script

import json var = {} var['PYPILLAR_TASK_INPUT'] = 'Hello' print(json.dumps(var))

.. code-block:: shell

Task2 python script

import json from pypillar.common import runtime_objects pypillar = runtime_objects() output = {} output['PYPILLAR_RESULT'] = pypillar['PYPILLAR_TASK_INPUT'] + ' World' print(json.dumps(output))

It will give following result

.. code-block:: shell

{ "PYPILLAR_RESULT": "Hello World" }

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

pypillar-0.0.5.tar.gz (3.1 MB view hashes)

Uploaded Source

Built Distribution

pypillar-0.0.5-py3-none-any.whl (3.1 MB view hashes)

Uploaded Python 3

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