Skip to content

Packages

Packages add Python libraries and OS packages to your workspace, so your Dags can import them and call their binaries. You do not rebuild an image; each deploy creates a version you can roll back to.

Python packages

A Python package is a requirement in pip syntax. DagForge installs it into a virtual environment for the workspace and puts that environment ahead of the base image for task runs and Dag imports.

requests==2.32.3
pandas>=2.2,<3
apache-airflow-providers-google==10.0.0

OS packages

An OS package is a Debian/Ubuntu apt package name. DagForge unpacks it into a workspace prefix and adds its binaries and shared libraries to the task environment.

jq
libpq5
libxml2

Python and OS together

Some Python libraries need a native library. Add both.

Python requirement OS package
psycopg2 libpq5
lxml libxml2 libxslt1.1
Pillow libjpeg62-turbo zlib1g

Install

  1. Open Packages.
  2. Add Python requirements and/or OS packages.
  3. Choose Deploy.
  4. When the build succeeds, the new version is active.

Versions and rollback

  • Every deploy creates a version.
  • The previous version stays available.
  • Activate an earlier version to roll back.
  • New versions apply to new runs; running tasks are not interrupted.

Limits and notes

  • Packages are scoped to the workspace.
  • Use pip requirement syntax for Python and Debian/Ubuntu package names for OS.
  • A native library often needs both a Python requirement and an OS package.
  • If a build fails, open the build log. A missing OS library or an invalid requirement is the most common cause.