This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import sys | |
import pyarrow.parquet as pq | |
import os | |
def inspect_parquet(file_name): | |
"""Reads metadata from parquet file and prints details of each column.""" | |
# Read metadata from parquet file | |
metadata = pq.read_metadata(file_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import sys; import pandas as pd; pd.read_parquet(sys.argv[1]).to_json(sys.stdout, orient='records') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Delete all objects in a bucket and then delete the bucket.""" | |
# Description: delete all objects in a bucket and then delete the bucket""" | |
# Usage: python bucket_delete.py --bucket_name <bucket_name> --profile_name <profile_name> | |
# Author: @ereli | |
# Date: 2023-04-11 | |
import argparse | |
import boto3 | |