From f30f356ae378ae6138e4124e2e22e1bd38d0bfcf Mon Sep 17 00:00:00 2001 From: Mansi Singh <76874762+singhmansi25@users.noreply.github.com> Date: Sun, 23 Apr 2023 22:32:22 +0530 Subject: [PATCH] Update README.md --- README.md | 51 ++++++++++++++++++++++++++++++--------------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index b91fd2d..ffd0d35 100644 --- a/README.md +++ b/README.md @@ -3,30 +3,39 @@ This repo contains submission for SteelEye task for Python Engineer # Brief: -The requirement needs to be developed in Python 3 -Code should follow pep8 standards and should include pydoc, logging & unit tests -Please provide github link for review. +- The requirement needs to be developed in Python 3 +- Code should follow pep8 standards and should include pydoc, logging & unit tests +- Please provide github link for review. # Requirement: -Download the xml from this link -From the xml, please parse through to the first download link whose file_type is DLTINS and download the zip -Extract the xml from the zip. -Convert the contents of the xml into a CSV with the following header: -FinInstrmGnlAttrbts.Id -FinInstrmGnlAttrbts.FullNm -FinInstrmGnlAttrbts.ClssfctnTp -FinInstrmGnlAttrbts.CmmdtyDerivInd -FinInstrmGnlAttrbts.NtnlCcy -Issr -Store the csv from step 4) in an AWS S3 bucket -The above function should be run as an AWS Lambda (Optional) +- Download the xml from this link +- From the xml, please parse through to the first download link whose file_type is DLTINS and download the zip +- Extract the xml from the zip. +- Convert the contents of the xml into a CSV with the following header: + - FinInstrmGnlAttrbts.Id + - FinInstrmGnlAttrbts.FullNm + - FinInstrmGnlAttrbts.ClssfctnTp + - FinInstrmGnlAttrbts.CmmdtyDerivInd + - FinInstrmGnlAttrbts.NtnlCcy + - Issr +- Store the csv from step 4) in an AWS S3 bucket +- The above function should be run as an AWS Lambda (Optional) # Assessment criteria: -Percentage of requirements satisfied -How clean the code is - in particular simplicity, adhering to python code style conventions and error handling. -Follows PEP 8 guidelines -We expect pydoc for each class and function with optional type hints(nice to have) -Follows standard logging (no print statements). Logs are essential part of troubleshooting application. -Unit tests with good code coverage +- Percentage of requirements satisfied +- How clean the code is - in particular simplicity, adhering to python code style conventions and error handling. +- Follows PEP 8 guidelines +- We expect pydoc for each class and function with optional type hints(nice to have) +- Follows standard logging (no print statements). Logs are essential part of troubleshooting application. +- Unit tests with good code coverage + + +# Approach +- Importing required libraries +- Creating a class for various tasks +- Logging & Unit-testing +- ZIP -> XML -> CSV +- AWS S3 bucket creation +- I have not applied Lambda function