Skip to main content

azdo_pipeline

Overview

A Python module to call Azure DevOps pipeline and optionally search output.

Prerequisites

  • Python 3.9 or higher.

  • Azure DevOps PAT (Personal Access Token) with Builds (read and execute) permissions.

Usage

Installation:

pip3 install azdo_pipeline
# or
python3 -m pip install azdo_pipeline

Bash:

call_azdo_pipeline \
   -t "<pat>" \
   -o "<org>" \
   -p "<project_id>" \
   -l <pipeline_id> \
   [-d '<run_parameters>' \]
   [-r <run_id> \]
   [-g <log_id> \]
   [-s "<search_pattern>"]

Example:

call_azdo_pipeline \
   -t "sd354sd36f5sf4s6v4s" \
   -o "my-org" \
   -p "asfj-349859njnkfv-dvdf-3rfsw" \
   -l 35 \
   -d '{"templateParameters": {"agentPool": "ubuntu-latest"}}' \
   -r 3210 \
   -g 6 \
   -s ".*SUCCESSFUL.*"

Retrieving pipeline run logs list...
Retrieving pipeline run log 9...
Extracting output from logs...
{ 'data': '2025-08-23T08:07:29.0226728Z SUCCESSFUL',
   'run_id': 3210,
   'status': 200}

Arguments

  • -t PAT (Personal Access Token) for Azure DevOps authentication.

  • -o Organization name in Azure DevOps.

  • -p Project ID or name in Azure DevOps.

  • -l Pipeline ID in Azure DevOps.

  • -d (Optional) JSON string with run parameters.

  • -r (Optional) Specific run ID to fetch logs from.

  • -g (Optional) Specific log ID to fetch.

  • -s (Optional) Regex pattern to search for in the logs.

Return Value

A dictionary with the following keys:

  • data: The matched log line or an empty string if no match is found.

  • run_id: The ID of the pipeline run.

  • status: The HTTP status code of the API response.

Metadata

Release files for azdo_pipeline 1.0.2

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

Source distribution (sdist)

Source distribution for azdo_pipeline 1.0.2
File Size Uploaded Provenance Actions
azdo_pipeline-1.0.2.tar.gz 4.2 kB Without provenance Details for azdo_pipeline-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for azdo_pipeline 1.0.2
File Interpreter ABI Platform Actions
azdo_pipeline-1.0.2-py3-none-any.whl Python 3 none any Details for azdo_pipeline-1.0.2-py3-none-any.whl

Total release size: 10.2 kB

Release files / azdo_pipeline-1.0.2.tar.gz

Download URL azdo_pipeline-1.0.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ec84bf8490f87c2641026078f2e72b65295d922d16d2fb5b2ae8a1455d8950a7
BLAKE2b-256 checksum
How to use checksums
d92eb429424f1a9a778bcef1298926040d78fd2487d77b3f578d594c92e2dea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/5.15.154+

Release files / azdo_pipeline-1.0.2-py3-none-any.whl

Download URL azdo_pipeline-1.0.2-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31237be04ccd56dda23c2aac294886702cb709dc40fb4601c5d655e73e7d1cf5
BLAKE2b-256 checksum
How to use checksums
5f9099d458eebdd2a2ef221b61e3f70cc2b0ef22e4f73a998a39704cebdd06cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.3 Linux/5.15.154+

Security for azdo_pipeline 1.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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