Skip to content

Instantly share code, notes, and snippets.

View elly-belfort's full-sized avatar

Elly Belfort-Mattos elly-belfort

  • Sydney, NSW, Australia
View GitHub Profile
@ntantri
ntantri / s3_executor.py
Last active December 3, 2023 18:09
An executor library which uses the select_runner.py to run queries on AWS S3 files.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import argparse
import sys
import boto3
from select_runner import *
@ntantri
ntantri / select_runner.py
Last active April 22, 2021 04:45
AWS S3 Select Runner - used to execute queries on S3 files
import boto3
s3 = boto3.client('s3')
def write_to_file(r, output_file):
"""
This function would write the output to the file.