Skip to main content

Modular Pipeline Library

Project description

Modular Pypeline Library

build-and-test-module coverage publish-documentation Checked with mypy

linting: pylint Code style: black

version python package downloads mpyl

What is MPyL?

MPyL stands for Modular Pipeline Library (in Python).

This library is loosely based on the principles described in https://www.jenkins.io/blog/2019/01/08/mpl-modular-pipeline-library/ but completely independent of Jenkins or any other CI/CD platform.

🔖 Documentation

Detailed, complete, searchable documentation can be found at https://vandebron.github.io/mpyl

📚 Principles

MPyL is built with the following principles in mind.

  • Not a platform It is not tied to any CI/CD platform. MPyL is a library, not a framework. It is not a runner, not a scheduler, and it doesn't have a GUI. It can be plugged into any CI/CD platform. Execution flows for Jenkins or Dagster are included as an example.
  • Minimal footprint: It is self-contained and has very few external dependencies (e.g. Git, Docker). It can be run anywhere, also on your local machine.
  • Accessible and maintainable
    • Written in Python, the most widely adopted scripting language with an extensive amount of client libraries relevant to CI/CD.
    • Strongly typed: MyPy type hints and schemas for all YAML files. Clearly defined interfaces for inputs and outputs of steps.
    • Focus on short feedback loop. Unit testable and everything can be run locally.
  • Self documented by docstrings in the code, descriptions in the schemas and explanations in the CLI.
  • Python as YAML templating engine Attempts to mix markup and logic tend to have a worst of both worlds outcome. MPyL uses YAML strictly for configuration. Where YAML needs to produced dynamically, like for CRDs via HELM charts, it is generated by Python code. The produced YAML is validated against the corresponding schemas.
  • Extensible Support for the most common use cases (e.g. Docker, Helm, Kubernetes, AWS, etc.) is built-in. But it is easy to extend with your own mpyl.steps.

💻 Technologies

Requirements

The following technologies are expected to be present on the local OS:

Bundled

MPyL is extensible and has a minimal footprint. Having said that, batteries for the following technologies are included.

CI/CD
Build
  • Docker mpyl.steps.build.dockerbuild
  • Scala (SBT) mpyl.steps.build.sbt
  • Jenkins mpyl.cli.commands.build.jenkins and mpyl.utilities.jenkins.runner.JenkinsRunner
Testing
  • Junit mpyl.steps.models.ArtifactType.JUNIT_TESTS
Deployment
  • K8S mpyl.steps.deploy.kubernetes
  • Helm mpyl.steps.deploy.k8s.helm
Reporting
  • Jira mpyl.reporting.targets.jira
  • Github mpyl.reporting.targets.github
  • Slack mpyl.reporting.targets.slack

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mpyl-1.6.4-py3-none-any.whl (258.0 kB view details)

Uploaded Python 3

File details

Details for the file mpyl-1.6.4-py3-none-any.whl.

File metadata

  • Download URL: mpyl-1.6.4-py3-none-any.whl
  • Upload date:
  • Size: 258.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.19

File hashes

Hashes for mpyl-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8a59d737729e0a38dfbff59aab3dfae4bd823314c9c8229e0eb2e46df0052300
MD5 a547925f8801a7eda80ce3fa534bcd7a
BLAKE2b-256 33a20c511cddd5d592489e93a4f47eb1f62fa0b90578d11d2f24cc2c417ce349

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page