--- id: dagger-io version: "0.21.8" license: unclear license_treatment: permissive maintenance: active --- # dagger-io — A client package for running Dagger pipelines in Python. License: permissive · Maintenance: active · Downloads: 240.2K/mo ## What it is and what it does Dagger Python SDK lets you write CI/CD pipelines as Python code that runs on any OCI-compatible container runtime. Instead of writing declarative YAML or shell scripts, you define pipeline steps using a fluent Python API—building containers, executing commands, and chaining operations together. The SDK handles container lifecycle management and automatically downloads and runs the Dagger CLI engine for you. It's built on async/await primitives (via anyio) and integrates with OpenTelemetry for observability. The package requires Python 3.10 or later and a running container runtime like Docker. It has 13 runtime dependencies including gql for GraphQL communication, httpcore for networking, and rich for terminal output formatting. Use it for: - Define multi-stage build pipelines in Python that run in isolated containers without manual Docker CLI calls. - Automate testing, linting, and deployment workflows as type-checked Python code instead of shell scripts. - Build and push container images programmatically with full control over layer caching and dependency management. - Create reusable pipeline modules in Python that can be versioned and tested like regular application code. - Debug CI/CD logic locally before committing, using the same Python runtime as your production pipeline. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Dagger Python SDK is a client for defining and running CI/CD pipelines in Python, executing them on any OCI-compatible container runtime without requiring manual container orchestration. Yes. Dagger Python SDK is actively maintained, has no known vulnerabilities, low install friction, and a permissive license. It's suitable for teams wanting to write CI/CD pipelines as Python code. Install it if you want to replace shell scripts and YAML with type-safe, testable Python—but only if you have Docker or another OCI runtime available and are comfortable with async Python. ## Install pip install dagger-io uv add dagger-io poetry add dagger-io ## Installing dagger-io Before you install: Low install friction with a pure-wheel distribution. Active maintenance with a release 16 days ago and a commit history through 2026-08-14. Requires Python 3.10 or later and Docker or another OCI-compatible runtime; the SDK automatically manages the Dagger CLI for you. License in practice: Licensed under Apache Software License (permissive), which allows commercial and private use with minimal restrictions—suitable for most production and open-source projects. Quickstart: pip install dagger-io import anyio import dagger from dagger import dag async def main(): async with dagger.connection(): ctr = dag.container().from_("python:alpine") result = await ctr.with_exec(["echo", "hello"]).stdout() print(result) anyio.run(main) Requires Python 3.10 or later and Docker or another OCI-compatible container runtime installed and running on your system. Verify before relying: - Whether the SDK's automatic Dagger CLI download works reliably in air-gapped or restricted network environments. - Performance characteristics and resource overhead when running many concurrent pipelines. - Compatibility with container runtimes other than Docker (e.g., Podman, containerd) beyond the 'OCI-compatible' claim. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 240.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags python ci/cd pipeline framework, container-based workflow automation, dagger python client, oci container pipeline tool, python devops orchestration, ci-cd, container-orchestration, async-python [View on SkillFed](https://skillfed.io/packages/dagger-io) · [View on PyPI](https://pypi.org/project/dagger-io/)