aws_ext is a set of 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 the moment only some utilities for the Aws Glue Data catalog
Installation
pip install aws_ext
Usage (command line)
export LOGLEVEL=INFO
AWS_PROFILE=prd aws_ext get_tables_with_many_versions [] 10
aws_ext get_tables_with_many_versions "[db1,db2]" 20
aws_ext delete_old_tables_versions [] 10 False
Usage (python library)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_ext-0.1.0.tar.gz.
File metadata
- Download URL: aws_ext-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3e6f1ea623f49c85935a45608b551b9cf50f32d65f580932d4dd1529c78ad74
|
|
| MD5 |
f1f326ae8159ca03d2dc04c79f10a3eb
|
|
| BLAKE2b-256 |
b8646673c670c2dcf1e069e70e9da237dff34fd0b4c6be14cc3e9ca311a91cd9
|
File details
Details for the file aws_ext-0.1.0-py3.9.egg.
File metadata
- Download URL: aws_ext-0.1.0-py3.9.egg
- Upload date:
- Size: 11.5 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc342d0c81adb9fe4a6c479996ac5af057a3bd0e44739ea32715effd0844e3bb
|
|
| MD5 |
b9f021475cb9085ec540481e34e2ad90
|
|
| BLAKE2b-256 |
5220b1a3f66dc69948519051c2bbbe71697b65ca8c45764ff7c9381464a48fc5
|
File details
Details for the file aws_ext-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aws_ext-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d7d9b5b3352475d3e5c54e095c447d98f8d50f03cb84a3ae6b38a3dc8a09fa8
|
|
| MD5 |
906305ef1c3778210fb998d975d12960
|
|
| BLAKE2b-256 |
e837f8ee09cdcbf0872375b01f6821a08257564ea6719b3be1997c148640a79c
|