Skip to content

Instantly share code, notes, and snippets.

@DavidKatz-il
DavidKatz-il / airflow_client_api.py
Last active February 19, 2023 07:45
API client for airflow
from dataclasses import dataclass
from typing import Any, List, Optional, Dict, Tuple, Union
from urllib.parse import urlencode
import urllib3
import json
LIMIT = 10_000 # the default on airflow api is 100
@DavidKatz-il
DavidKatz-il / database.py
Created March 24, 2021 14:26
DataBase class is a wrapper around `sqlite` database.
import sqlite3
from typing import List, Union
class DataBase:
"""
DataBase class is a wrapper around sqlite database.
"""
def __init__(self, db_path: str):
@DavidKatz-il
DavidKatz-il / nans_bites.ipynb
Created December 29, 2020 11:20
The notebook for NaN Analysis post (https://dev.to/sephib/nans-bites-17kk).
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.