aws-ext

2021-06-25

The aws_ext python package contains some useful functions (built on top of boto3) for managing some aws services. At the moment only some utilities for the Aws Glue Data catalog

Installation

pip install aws_ext

Usage

import boto3
import aws_ext

session = boto3.session.Session()

GLUE

from aws_ext import glue_databases
glue_client = session.client("glue")

Extracting tables with (too) many versions

glue_databases.get_tables_with_many_versions(glue_client, database_name="mydb", threshold=1)

Deleting old tables versions

glue_databases.delete_old_tables_versions(glue_client, database_name="mydb", keep=1, dryrun=True)

Enter your instance's address


More posts like this

Smart investment Problem with Prolog

2024-07-14 | #programming #prolog

Below my #prolog solution for Smart investment problem. It is a sample of Linear Programming using Prolog. A client of an investment firm has $10000 available for investment. He has instructed that his money be invested in particular stocks, so that no more than $5000 is invested in any one stock but at least $1000 be invested in each stock.

Continue reading 