{"id":27248827,"url":"https://github.com/bakdata/connection_plugin","last_synced_at":"2025-04-10T23:48:12.741Z","repository":{"id":44716893,"uuid":"188392303","full_name":"bakdata/connection_plugin","owner":"bakdata","description":"Templating for Airflow connections","archived":false,"fork":false,"pushed_at":"2022-12-08T05:17:17.000Z","size":91,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-09T02:15:57.651Z","etag":null,"topics":["airflow","airflow-plugin","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/airflow-connection-plugin/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bakdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-24T09:20:18.000Z","updated_at":"2019-07-03T10:48:30.000Z","dependencies_parsed_at":"2023-01-24T12:01:02.969Z","dependency_job_id":null,"html_url":"https://github.com/bakdata/connection_plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakdata%2Fconnection_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakdata%2Fconnection_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakdata%2Fconnection_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bakdata%2Fconnection_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bakdata","download_url":"https://codeload.github.com/bakdata/connection_plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987184,"owners_count":21028891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airflow","airflow-plugin","python"],"created_at":"2025-04-10T23:48:12.165Z","updated_at":"2025-04-10T23:48:12.727Z","avatar_url":"https://github.com/bakdata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Templating for Airflow connections\n[![PyPI version](https://badge.fury.io/py/airflow-connection-plugin.svg)](https://badge.fury.io/py/airflow-connection-plugin)\n\nThe connection plugin contains an [Airflow](https://airflow.apache.org/) macro for [templating](https://airflow.apache.org/concepts.html#id1) connections in tasks.\nYou can use it like this:\n\n```\n# prints 'mysql'\n{{ macros.connection_plugin.get_conn('airflow_db').host }}\n```\n`connection_plugin.get_conn` returns the [Connection object](https://airflow.apache.org/_api/airflow/models/connection/index.html#airflow.models.connection.Connection) \nthat you can interact with as described in the documentation.\n\n## Installation\n```\npip install airflow-connection-plugin\n```\n\n## Demo\nTo start the docker container simply run the following command in the root directory:\n```\ncd example \u0026\u0026 docker-compose up\n```\n\nAfter that you can reach the airflow frontend via [http://localhost:8080](http://localhost:8080).\nYou will find an example DAG that demonstrates how to retrieve different connection information.\n\n**Attention**: Be especially careful when using passwords in templates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakdata%2Fconnection_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbakdata%2Fconnection_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbakdata%2Fconnection_plugin/lists"}