Skip to content

Commit

Permalink
pull_data PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
alifradi committed Sep 19, 2024
1 parent 96e6200 commit 3c95973
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .Rproj.user/CC312644/pcs/files-pane.pper
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"ascending": true
}
],
"path": "D:/Data engineer track/ETL-pipline-automated/etl"
"path": "D:/Data engineer track/ETL-pipline-automated"
}
1 change: 1 addition & 0 deletions .Rproj.user/CC312644/sources/prop/INDEX
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
D%3A%2FData%20engineer%20track%2FETL-pipline-automated%2F.github%2Fworkflows%2Fcode_review.yml="D4DF0E03"
D%3A%2FData%20engineer%20track%2FETL-pipline-automated%2F.github%2Fworkflows%2Ftest_functions.yml="07E00D1C"
D%3A%2FData%20engineer%20track%2FETL-pipline-automated%2FDockerfile.extract="B443DFB4"
D%3A%2FData%20engineer%20track%2FETL-pipline-automated%2Fetl%2Fextract.py="CC38D2E2"
D%3A%2FData%20engineer%20track%2FETL-pipline-automated%2Fetl%2Ffunctions_data.json="807514FC"
D%3A%2FData%20engineer%20track%2FETL-pipline-automated%2Fetl%2Fmain.py="CF0D3E37"
Expand Down
1 change: 1 addition & 0 deletions .Rproj.user/shared/notebooks/paths
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
D:/Data engineer track/ETL-pipline-automated/.github/workflows/code_review.yml="8AA4FA2C"
D:/Data engineer track/ETL-pipline-automated/.github/workflows/test_functions.yml="1787F842"
D:/Data engineer track/ETL-pipline-automated/Dockerfile.extract="C506D557"
D:/Data engineer track/ETL-pipline-automated/etl/extract.py="FC9CD686"
D:/Data engineer track/ETL-pipline-automated/etl/functions_data.json="5E124C0F"
D:/Data engineer track/ETL-pipline-automated/etl/main.py="F2A96630"
Expand Down
2 changes: 2 additions & 0 deletions etl/pull_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
from extract import get_data


def main():
# Load the JSON file
with open('functions_data.json') as f:
Expand All @@ -15,5 +16,6 @@ def main():
df.to_csv(f"{item['table_name']}.csv", index=False)
print(f"Data for {package_id} saved to {item['table_name']}.csv")


if __name__ == "__main__":
main()

0 comments on commit 3c95973

Please sign in to comment.