Skip to main content

aboutcode.pipeline

Define and run pipelines.

Install

pip install aboutcode.pipeline

Define and execute a pipeline

from aboutcode.pipeline import BasePipeline


class PrintMessages(BasePipeline):
    @classmethod
    def steps(cls):
        return (cls.step1,)

    def step1(self):
        print("Message from step1")


PrintMessages().execute()

Options and steps selection

from aboutcode.pipeline import BasePipeline
from aboutcode.pipeline import optional_step


class PrintMessages(BasePipeline):
    @classmethod
    def steps(cls):
        return (cls.step1, cls.step2)

    def step1(self):
        print("Message from step1")

    @optional_step("foo")
    def step2(self):
        print("Message from step2")


# Execute pipeline with group selection
run = PrintMessages(selected_groups=["foo"])
exitcode, error = run.execute()

# Execute pipeline with steps selection
run = PrintMessages(selected_steps=["step1"])
exitcode, error = run.execute()

Post steps

Post steps run at the end of the pipeline, even when a previous step failed. Use them for cleanup. A post step must not rely on the state set by the other steps, as they may have failed before setting it.

from aboutcode.pipeline import BasePipeline


class PrintMessages(BasePipeline):
    @classmethod
    def steps(cls):
        return (cls.step1,)

    @classmethod
    def get_post_steps(cls):
        return (cls.cleanup,)

    def step1(self):
        raise ValueError("Failure in step1")

    def cleanup(self):
        print("Cleanup runs after the step1 failure")

Metadata

Release files for aboutcode.pipeline 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aboutcode.pipeline 0.3.0
File Size Uploaded Provenance Actions
aboutcode_pipeline-0.3.0.tar.gz 9.7 kB With provenance Details for aboutcode_pipeline-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aboutcode.pipeline 0.3.0
File Interpreter ABI Platform Actions
aboutcode_pipeline-0.3.0-py3-none-any.whl Python 3 none any Details for aboutcode_pipeline-0.3.0-py3-none-any.whl

Total release size: 22.1 kB

Release files / aboutcode_pipeline-0.3.0.tar.gz

Download URL aboutcode_pipeline-0.3.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
331ff47ff7af908ade01ddf09e747b3beff1289308a1a67c99f3de63b8329aac
BLAKE2b-256 checksum
How to use checksums
74ca43afafadbec2f48b67e1618482ae7f5d7078738eb99bf6e7122cca19b12b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / aboutcode_pipeline-0.3.0-py3-none-any.whl

Download URL aboutcode_pipeline-0.3.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb9ea49cf294b0a6e078e5ed88d5531954127a5513d28ac83ad80f861b6da69a
BLAKE2b-256 checksum
How to use checksums
a2db693c577406ac6951d10b337ac5a6dbf9c19d5380342b6e9be852b73757d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for aboutcode.pipeline 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aboutcode_pipeline-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page