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/preprocessing.py:Extract
    kMeans:
        exec: src/models.py:Kmeans
    hyperTuning:
        exec: src/tuning.py:GridSearch

Any executable class should have a method _exec(), because ppline is searching for that method to execute. Hence:

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

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

	def _exec(self):
		self.sum()
		self.divide()
    

1.3. How to use

In your working directory write:

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

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.1.tar.gz (7.5 kB view hashes)

Uploaded Source

Built Distribution

ppline-0.1.1-py3.8.egg (16.1 kB view hashes)

Uploaded Source

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