check-glue-catalog

Check for details in Glue Catalog and tell if its outdated


License
MIT
Install
pip install check-glue-catalog==0.1.9

Documentation

Python 3.7 PyPI version License: MIT Language grade: Python Twitter Follow

Check Glue Catalog

Get Glue catalog details to check if tables are outdated.

pip install check-glue-catalog
from check_glue_catalog import get_tables

result = get_tables(catalog_name="glue_database_name")

print(result)
{
  "outdated": 3,
  "updated": 23,
  "total": 26,
  "outdated_list": [
    {
      "table_name": "table_name_1",
      "due_days": 2,
      "rows": 7,
      "last_updated": "2020-03-10 05:43:37"
    },
    {
      "table_name": "other_table",
      "due_days": 76,
      "rows": 5,
      "last_updated": "2019-12-27 11:08:13"
    },
    {
      "table_name": "some_table",
      "due_days": 97,
      "rows": 5,
      "last_updated": "2019-12-06 16:22:52"
    }
  ]
}