diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 701b467..7c54bef 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.9', '3.10', '3.11'] + python-version: ['3.11'] steps: - uses: actions/checkout@v3 diff --git a/README.md b/README.md index 4c75eb2..d90867d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,17 @@ # ETL Data Pipeline +![Python](https://img.shields.io/badge/python-3776AB.svg?&style=for-the-badge&logo=python&logoColor=white) +![FastAPI](https://img.shields.io/badge/fastapi-009688.svg?&style=for-the-badge&logo=fastapi&logoColor=white) +![Pandas](https://img.shields.io/badge/pandas-150458.svg?&style=for-the-badge&logo=pandas&logoColor=white) +[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge)](https://github.com/psf/black) + +![Redis](https://img.shields.io/badge/redis-DC382D.svg?&style=for-the-badge&logo=redis&logoColor=white) +![Postgres](https://img.shields.io/badge/postgresql-4169E1.svg?&style=for-the-badge&logo=postgresql&logoColor=white) +![Docker](https://img.shields.io/badge/docker-2496ED.svg?&style=for-the-badge&logo=docker&logoColor=white) + +![React](https://img.shields.io/badge/react-35495e.svg?&style=for-the-badge&logo=react&logoColor=61DAFB) +![TailwindCSS](https://img.shields.io/badge/tailwindcss-gray.svg?&style=for-the-badge&logo=tailwindcss&logoColor=06B6D4) + ## Objective Create a data pipeline that ingests user data via an API, processes and stores it, and then retrieves it in a serialized format. diff --git a/api.py b/api.py index 577c947..c7aeab9 100644 --- a/api.py +++ b/api.py @@ -47,9 +47,9 @@ async def list_users(): SELECT uid FROM users; """ ) - result = curs.fetchall() + user_list = curs.fetchall() - return {"postgres_data": result} + return user_list except psycopg2.Error as e: return {"message": str(e)} @@ -87,9 +87,10 @@ async def get_user(user_id: str): """, (user_id,), ) - result = curs.fetchall() - return result + postgres = curs.fetchall() + + return postgres except psycopg2.Error as e: return {"message": str(e)} diff --git a/static/index.html b/static/index.html index 0c589ec..1b3d735 100644 --- a/static/index.html +++ b/static/index.html @@ -1,10 +1,10 @@ - +
-