Обновить dags/OSV.py
This commit is contained in:
parent
3b5e028cd0
commit
0a228713ea
12
dags/OSV.py
12
dags/OSV.py
|
|
@ -1,9 +1,19 @@
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from requests.auth import HTTPBasicAuth
|
import numpy as np
|
||||||
import datetime
|
import datetime
|
||||||
|
from requests.auth import HTTPBasicAuth
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
|
from airflow import DAG
|
||||||
|
from airflow.operators.python import PythonOperator
|
||||||
|
|
||||||
|
default_args = {
|
||||||
|
'owner': 'airflow',
|
||||||
|
'depends_on_past': False,
|
||||||
|
'start_date': datetime(2023, 1, 1),
|
||||||
|
'retries': 1,
|
||||||
|
}
|
||||||
|
|
||||||
def get_db_engine():
|
def get_db_engine():
|
||||||
"""Создает подключение к PostgreSQL"""
|
"""Создает подключение к PostgreSQL"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue