Обновить dags/OSV.py

This commit is contained in:
bn_user 2025-09-01 12:52:47 +00:00
parent 3b5e028cd0
commit 0a228713ea
1 changed files with 11 additions and 1 deletions

View File

@ -1,9 +1,19 @@
import requests
import json
import pandas as pd
from requests.auth import HTTPBasicAuth
import numpy as np
import datetime
from requests.auth import HTTPBasicAuth
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():
"""Создает подключение к PostgreSQL"""