Skip to main content

Pipeline framework.

Project description

ppline

1. About

ppline can trigger your python modules in any specified order, making it look like a pipeline!

1.1. Installation

pip install ppline

1.2. How it works

Ppline takes configuration of your pipeline from .yml file, so you have to create it in your root directory in the following form:

steps:
    [step name]:
        exec: [relative path to a file]:[class to execute]
    [step name]:
        exec: [relative path to a file]:[class to execute]
    [step name]:
        exec: [relative path to a file]:[class to execute]

Here is the example:

steps:
    preProcessing:
        exec: src/calculation.py:Calculate
    kMeans:
        exec: src/models.py:Kmeans
    hyperTuning:
        exec: src/tuning.py:GridSearch

Any executable class should have a method __call__. For example:

class Calculate(object):
	def sum(self):
		a=2
		b=4
		self.c=a+b

	def divide(self):
		f=4
		self.d = self.c/f

        def show_result(self):
                print(self.d)

	def __call__(self):
		self.sum()
		self.divide()
                self.show_result()
    

1.3. How to use

Create a .yml file in your root directory, with pipeline config. Then, use the following command to trigger the pipeline

python -m ppline.cli --pipeline_config file.yml

1.4. To do

  • dependency map between steps
  • independent steps in parallel
  • make png export of visualized pipeline w/ names

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

ppline-0.1.5.tar.gz (7.6 kB view details)

Uploaded Source

File details

Details for the file ppline-0.1.5.tar.gz.

File metadata

  • Download URL: ppline-0.1.5.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for ppline-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ccfe87c4a4aacdda20cfbc467986a86ba2536f5d30c6e7de41133a51612b6f11
MD5 0f0d213f96bf50395872090d91140db5
BLAKE2b-256 a401f645186a3c866f4cac11e8dd03f4de704144ea898b61062d5ed9b9594143

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