Registry / workflow / apache-airflow-providers-singularity

apache-airflow-providers-singularity

JSON →
library3.9.4pypypi✓ verified 84d ago

Apache Airflow provider for Singularity container runtime. Version 3.9.3 supports Airflow >=2.8.0 and Python >=3.10. The provider allows running tasks inside Singularity containers via the SingularityOperator. Release cadence is irregular, tracking Airflow provider releases.

pip install apache-airflow-providers-singularity
INSTALL
IMPORT
SIG · APACHE-AIRFLOW-PRO
A
apache-airflow-providers-singularity
workflowpythonv3.9.4
Install
23.5s avg
Import
4931ms
Disk
251MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.9.4 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 5.098s · 251.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 23.5s · import 4.764s · 249MB
251MB installed
● package 251MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SingularityOperator
from airflow.providers.singularity.operators.singularity import SingularityOperator
from airflow.contrib.operators.singularity import SingularityOperator
Old contrib module was removed in Airflow 2.x
SingularityHook
from airflow.providers.singularity.hooks.singularity import SingularityHook
from airflow.hooks.singularity import SingularityHook
Hook moved to providers package in Airflow 2.0+

Minimal DAG using SingularityOperator to run a command in a container.

from datetime import datetime from airflow import DAG from airflow.providers.singularity.operators.singularity import SingularityOperator with DAG( dag_id='singularity_example', start_date=datetime(2025, 1, 1), schedule=None, catchup=False, ) as dag: run_singularity = SingularityOperator( task_id='run_singularity_task', image='docker://busybox:latest', command='echo "Hello from Singularity"', force_pull_image=True, )
Debug
Known issues
breakingProvider version 3.x requires Airflow >=2.8.0 and Python >=3.10. Older Airflow versions are incompatible.
fix
Upgrade Airflow to >=2.8.0 and Python to >=3.10.
affects: 3.0.0 to 3.9.3
deprecatedThe 'force_pull_image' parameter may be deprecated in future versions; use 'pull_policy' instead.
fix
Migrate to using 'pull_policy' parameter ("always", "if-not-present", "never").
affects: 3.0.0+
gotchaSingularityOperator requires Singularity to be installed on the worker node. Without it, tasks fail with an executable not found error.
fix
Ensure Singularity is installed on all Airflow workers that run these tasks.
affects: all
gotchaThe provider does not automatically set environment variables for the container; use 'environment' parameter to pass variables.
fix
Pass environment variables via the 'environment' dict in the operator.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airflow.providers.singularity'
Provider not installed or Airflow version <2.0
fix
Install the provider via `pip install apache-airflow-providers-singularity`. Ensure Airflow >=2.0.
AirflowException: SingularityOperator requires singularity binary
Singularity is not installed on the worker node
fix
Install Singularity (e.g., `apt-get install singularity-container` or build from source).
AttributeError: 'SingularityOperator' object has no attribute 'image'
Using outdated provider version with different parameter name
fix
Upgrade provider to latest version: `pip install -U apache-airflow-providers-singularity`.
Upgrade
Version history
3.9.4latest on PyPI · released Jun 7, 2026
Audit
Dependencies
apache-airflowrequiredCore Airflow requirement
apache-airflow-providers-cncf-kubernetesoptionalOptional dependency for Kubernetes executor compatibility
Agent activity
45 hits · last 30 days
node
36
OpenAI (training)
2
Resources
apache-airflow-providers-singularity — pip install apache-airflow-providers-singularity · libregistry