Skip to main content

AWS ext: some high level useful functions

Project description

AWS EXT

The aws_ext python package contains some useful functions (built on top of boto3) for managing some aws services. At teh moment only 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_ext-0.0.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distributions

aws_ext-0.0.2-py3.9.egg (5.9 kB view hashes)

Uploaded Source

aws_ext-0.0.2-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page