A Python package to create a custom pipeline
Project description
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
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
Built Distribution
File details
Details for the file pipeln-0.2.11.tar.gz
.
File metadata
- Download URL: pipeln-0.2.11.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c65ec654ccb69350675b7a1faa588b3e036ee38bb5ba05c550f31338795a5997 |
|
MD5 | cfb0f7bea758abd5cb76a75d4ce72a06 |
|
BLAKE2b-256 | 1a92b97fad6c53e721f989e2090bb700deb8115aaf42fe9eefe32fd828e1b768 |
File details
Details for the file pipeln-0.2.11-py3-none-any.whl
.
File metadata
- Download URL: pipeln-0.2.11-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09451d5035f0f5ebbbdc637f452d493ee10ec5dd38ed73de9a529ad2e62112ef |
|
MD5 | bda1917dfa03e135e3b930c284854f9a |
|
BLAKE2b-256 | 7348d30891c8c6fd802df59c924aed42647e9480d077d62628e0534b13cefc65 |