Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alysivji/airflow-example
Airflow with LocalExecutor and Postgres using Docker-Compose
https://github.com/alysivji/airflow-example
Last synced: 7 days ago
JSON representation
Airflow with LocalExecutor and Postgres using Docker-Compose
- Host: GitHub
- URL: https://github.com/alysivji/airflow-example
- Owner: alysivji
- Created: 2018-11-03T04:24:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:59:01.000Z (almost 2 years ago)
- Last Synced: 2024-04-16T02:12:49.860Z (7 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Airflow Example
Airflow with LocalExecutor and Postgres using Docker-Compose.
DAGs go in `dags`.
## Create user
```console
docker-compose webserver bash
ipython
``````python
from airflow import models, settings
from airflow.contrib.auth.backends.password_auth import PasswordUseruser = PasswordUser(models.User())
user.username = input("Enter username: ")
user.email = input("Enter email address: ")
user.password = input("Enter password: ")session = settings.Session()
session.add(user)
session.commit()
session.close()
```