From 6fe145f649a83a87a717f550adf874fdede2b4ce Mon Sep 17 00:00:00 2001 From: Jayden Pyles Date: Thu, 21 Nov 2024 18:12:46 -0600 Subject: [PATCH] chore: remove uneeded files [skip ci] --- dynamic_conf.yaml | 4 ---- ipython.py | 37 ------------------------------------- 2 files changed, 41 deletions(-) delete mode 100644 dynamic_conf.yaml delete mode 100644 ipython.py diff --git a/dynamic_conf.yaml b/dynamic_conf.yaml deleted file mode 100644 index 70edee3..0000000 --- a/dynamic_conf.yaml +++ /dev/null @@ -1,4 +0,0 @@ -tls: - certificates: - - certFile: /etc/certs/ssl-cert.pem - keyFile: /etc/certs/ssl-cert.key diff --git a/ipython.py b/ipython.py deleted file mode 100644 index 11a477a..0000000 --- a/ipython.py +++ /dev/null @@ -1,37 +0,0 @@ -# STL -import os - -# PDM -import boto3 -from dotenv import load_dotenv - -# Load environment variables from .env file -load_dotenv() - - -def test_insert_and_delete(): - # Get environment variables - region_name = os.getenv("AWS_REGION") - # Initialize DynamoDB resource - dynamodb = boto3.resource("dynamodb", region_name=region_name) - table = dynamodb.Table("scrape") - - # Item to insert - item = { - "id": "123", # Replace with the appropriate id value - "attribute1": "value1", - "attribute2": "value2", - # Add more attributes as needed - } - - # Insert the item - table.put_item(Item=item) - print(f"Inserted item: {item}") - - # Delete the item - table.delete_item(Key={"id": "123"}) # Replace with the appropriate id value - print(f"Deleted item with id: {item['id']}") - - -if __name__ == "__main__": - test_insert_and_delete()