Skip to content

Instantly share code, notes, and snippets.

View maronavenue's full-sized avatar
😏
Lurking around

Maron Montano maronavenue

😏
Lurking around
  • Manila
View GitHub Profile
@maronavenue
maronavenue / fetch_data.py
Last active January 19, 2024 13:08
YBLL: FactSet Workshop #1
import argparse
def main():
# Instantiate the parser
parser = argparse.ArgumentParser(description='Retrieves a given datapoint from input PSE:TICKER. Supports timeseries data.')
# This is an example of configuring positional input arguments to your script
parser.add_argument('ticker', type=str, help='PSE Ticker')
parser.add_argument('field', type=str, help='Fieldname')
@maronavenue
maronavenue / lambda-read-from-parameter-store.py
Created November 15, 2020 16:23
SSM Parameter Store Demo using Python SDK (boto3)
import boto3
import os
print("SSM Parameter Store Demo using Python SDK")
# TODO: Configure IAM role from basic Lambda execution to add read-only access to SSM
def lambda_handler(event, context):
ssm = boto3.client("ssm")