Skip to main content

A Python package to create a custom pipeline

Project description

logo

A Python open source package to create a custom pipeline


💾 Installation & Upgrade

  • Installation: pip install pipeln
  • Upgrade: pip install pipeln --upgrade

📦 What is this?

Pipeln is a Python package aimed at creating a pipeline or a sequence of custom methods execution. The goal is to enable the creation of different procedural sequences that can be encapsulated within a method, allowing for the selection of order, return values, etc. Although some functionalities are still pending implementation, for a better overview, please refer to the objectives calendar.

📃​ Last version 0.2.11-alpha out now! 📃​

💬 Contribution & Questions

Contribution & Questions Type Platforms
🐞​​ Bug Reports GitHub Issues
📦​ Feature Requests & Ideas GitHub Discussions
🛠️​ Usage Questions & Discusions GitHub Discussions

​🔧​ Install & Use Pipeln

To start using Pipeln use the next command:

pip install pipeln

To use the library properly, we follow these steps:

  • Import the library.
  • Initialize an object of the Pipeln class, providing the names and parameters of our methods, and setting the execution order.
  • Create the execution structure.
  • Execute the pipeline.
from Pipeln.pipeline import Pipeline
from features.auxiliar_test_methods import add, sub, cap

obj = Pipeline(methods=[add, sub, cap], params=[{'a': 2, 'b': 4}, ('1', 2), ('spain',)], orders=[3, 1, 2], debug=True)
obj.create()
obj.run()

Expected output:

DEBUG: *****************************
DEBUG:      > Starting pipeline
DEBUG:
DEBUG: EXEC: Method add executed successfully.
ERROR: ERROR: There is an error in sub method. Inappropiate argument type.
DEBUG: EXEC: Method cap executed successfully.
DEBUG:
DEBUG:   Pipeline finished in 10.9
DEBUG: *****************************

💳 License

Pipeln is licensed under MIT License.

🗃️ Shields

PyPI downloads versions license

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

pipeln-0.2.11.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

pipeln-0.2.11-py3-none-any.whl (5.9 kB 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