Registry / workflow / apache-airflow-providers-cloudant

apache-airflow-providers-cloudant

JSON →
library4.3.5pypypi✓ verified 85d ago

Apache Airflow provider for Cloudant (a hosted Apache CouchDB service). Current version 4.3.4, compatible with Airflow >=2.6 and Python >=3.10. Released approximately monthly.

pip install apache-airflow-providers-cloudant
INSTALL
IMPORT
SIG · APACHE-AIRFLOW-PRO
A
apache-airflow-providers-cloudant
workflowpythonv4.3.5
Install
23.5s avg
Import
5092ms
Disk
252MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.3.5 · 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.910 runs
installs and imports cleanly · install 0.0s · import 5.307s · 252.9MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 23.5s · import 4.877s · 250MB
252MB installed
● package 252MB
Code
Verified usage

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

CloudantHook
from airflow.providers.cloudant.hooks.cloudant import CloudantHook
The hook is used in operators and sensors; no common wrong import known.
CloudantCreateDocumentOperator
from airflow.providers.cloudant.operators.cloudant import CloudantCreateDocumentOperator
The main operator to create a document.
CloudantGetDataOperator
from airflow.providers.cloudant.operators.cloudant import CloudantGetDataOperator
Operator to retrieve data from Cloudant.
CloudantDeleteDocumentOperator
from airflow.providers.cloudant.operators.cloudant import CloudantDeleteDocumentOperator
Operator to delete a document.
CloudantSensor
from airflow.providers.cloudant.sensors.cloudant import CloudantSensor
Sensor for Cloudant. Some older documentation may reference a different import.

Minimal DAG that creates a document in Cloudant. Requires a Cloudant connection defined in Airflow with the 'cloudant_default' conn_id.

from datetime import datetime from airflow import DAG from airflow.providers.cloudant.hooks.cloudant import CloudantHook from airflow.providers.cloudant.operators.cloudant import CloudantCreateDocumentOperator default_args = { 'owner': 'airflow', 'start_date': datetime(2024, 1, 1), } with DAG('cloudant_example', default_args=default_args, schedule_interval=None) as dag: create_doc = CloudantCreateDocumentOperator( task_id='create_doc', cloudant_conn_id='cloudant_default', database='my_database', doc={'name': 'example', 'value': 42}, )
airflow --version
Debug
Known issues
gotchaThe Cloudant connection type has changed in recent versions. Use 'cloudant' as the connection type, not 'http' or 'couchdb'. The host field should contain the full URL (e.g., https://account.cloudant.com).
fix
Set connection type to 'cloudant' and host to 'https://<account>.cloudant.com'.
affects: >=3.0.0
breakingBreaking change: In version 4.0.0, the provider was restructured. Old imports like 'from airflow.contrib.hooks.cloudant_hook import CloudantHook' no longer work.
fix
Use new import paths: 'from airflow.providers.cloudant.hooks.cloudant import CloudantHook'.
affects: >=4.0.0
deprecatedThe 'cloudant' package (the Python client library) is now in maintenance mode. The provider uses it internally, but you may need to pin versions if you see compatibility issues with future Airflow releases.
fix
Check the pinned version of 'cloudant' in the provider's dependencies if you encounter issues. Alternatively, consider migrating to the official CouchDB client.
affects: all
Errors
Common errors & fixes
airflow.exceptions.ConnectionNotFoundException: The conn_id `cloudant_default` isn't defined
The Cloudant connection is not configured in Airflow.
fix
Define a connection in Airflow UI or via environment variable: export AIRFLOW_CONN_CLOUDANT_DEFAULT='cloudant://user:pass@account.cloudant.com:443/my_database'
ImportError: cannot import name 'CloudantHook' from 'airflow.providers.cloudant.hooks'
Installed version is too old (pre-4.0.0) or import path is incorrect.
fix
Upgrade to the latest version and use 'from airflow.providers.cloudant.hooks.cloudant import CloudantHook'.
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='account.cloudant.com', port=443): Max retries exceeded with url: /my_database/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at ...>: Failed to establish a new connection: [Errno -2] Name or service not known'))
Hostname in connection is incorrect (missing scheme or wrong domain).
fix
Ensure the host in the connection includes 'https://' and the full domain (e.g., 'https://account.cloudant.com').
Upgrade
Version history
4.3.5latest on PyPI · released Jun 7, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
34
OpenAI (training)
2
Resources
apache-airflow-providers-cloudant — pip install apache-airflow-providers-cloudant · libregistry