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.
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.
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¶
- Open Packages.
- Add Python requirements and/or OS packages.
- Choose Deploy.
- 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.
Related¶
- Dags — use the package in a Dag.
- Shared Files — store data your Dags share.
- Troubleshooting — build errors.