{"id":18667552,"url":"https://github.com/fistgang/processemployeesetl","last_synced_at":"2026-04-27T11:31:20.529Z","repository":{"id":243850233,"uuid":"813471820","full_name":"FistGang/ProcessEmployeesETL","owner":"FistGang","description":"An Apache Airflow ETL pipeline to process employee data by downloading, validating, transforming, and loading it into a PostgreSQL database.","archived":false,"fork":false,"pushed_at":"2024-06-11T13:06:23.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-18T07:11:34.647Z","etag":null,"topics":["airflow","airflow-docker-containers","dag","docker-compose","etl-pipeline","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FistGang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-11T06:42:25.000Z","updated_at":"2025-01-06T05:30:13.000Z","dependencies_parsed_at":"2024-06-11T14:34:11.446Z","dependency_job_id":"ef5dd43c-8c64-4987-a0d3-13a75eacecec","html_url":"https://github.com/FistGang/ProcessEmployeesETL","commit_stats":null,"previous_names":["fistgang/processemployeesetl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FistGang/ProcessEmployeesETL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FistGang%2FProcessEmployeesETL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FistGang%2FProcessEmployeesETL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FistGang%2FProcessEmployeesETL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FistGang%2FProcessEmployeesETL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FistGang","download_url":"https://codeload.github.com/FistGang/ProcessEmployeesETL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FistGang%2FProcessEmployeesETL/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airflow","airflow-docker-containers","dag","docker-compose","etl-pipeline","python"],"created_at":"2024-11-07T08:39:13.985Z","updated_at":"2026-04-27T11:31:20.513Z","avatar_url":"https://github.com/FistGang.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Process Employees ETL Pipeline\n\nAn Apache Airflow ETL pipeline to process employee data by downloading, validating, transforming, and loading it into a PostgreSQL database.\n\n## Table of Contents\n\n- [Prerequisites](#prerequisites)\n- [Installation](#installation)\n- [Usage](#usage)\n- [ETL Pipeline Overview](#etl-pipeline-overview)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Prerequisites\n\n- **Python 3.9+**\n- **Apache Airflow 2.8+**\n\n## Installation\n\n1. **Clone the repository**:\n\n   ```sh\n   git clone https://github.com/FistGang/ProcessEmployeesETL.git\n   cd ProcessEmployeeETL.git\n   ```\n\n2. **Set up a virtual environment** (optional):\n\n   ```sh\n   python3 -m venv venv\n   source venv/bin/activate\n   ```\n\n3. **Install dependencies**:\n\n   ```sh\n   pip install -r requirements.txt\n   ```\n\n4. **Configure Airflow**:\n   - Initialize the Airflow database:\n\n     ```sh\n     airflow db init\n     ```\n\n   - Create a PostgreSQL connection in Airflow with ID `pg_conn`.\n\t    - Connection Id: `pg_conn`\n\t    - Connection Type: postgres\n\t    - Host: postgres\n\t    - Schema: airflow\n\t    - Login: airflow\n\t    - Password: airflow\n\t    - Port: 5432\n\n5. **Start Airflow**:\n\n   ```sh\n   airflow webserver --port 8080\n   airflow scheduler\n   ```\n\n6. **Deploy the DAG**:\n   - Place `process_employees.py` in your Airflow DAGs folder.\n\n## Using Containers\n\n```bash\n# Download the docker-compose.yaml file\ncurl -LfO 'https://airflow.apache.org/docs/apache-airflow/stable/docker-compose.yaml'\n\n# Make expected directories and set an expected environment variable\nmkdir -p ./dags ./logs ./plugins\necho -e \"AIRFLOW_UID=$(id -u)\" \u003e .env\n\n# Initialize the database (optional)\ndocker-compose up airflow-init\n\n# Start up all services\ndocker-compose up\n```\n\nThen create a PostgreSQL connection in Airflow with ID `pg_conn` .\n\n## Usage\n\n1. **Trigger the DAG**:\n   - Open the Airflow web UI at `http://localhost:8080`.\n   - Activate and manually trigger the `process_employees_etl_pipeline` DAG.\n\n2. **Monitor**:\n   - Use the Airflow UI to monitor DAG execution and check logs for errors.\n\n## ETL Pipeline Overview\n\n1. **Create Tables**:\n   - `employees`: Main table.\n   - `employees_temp`: Temporary table for data processing.\n\n2. **Get Data**:\n   - Download and validate the employee CSV file.\n\n3. **Transform Data**:\n   - Add a processed timestamp, format columns, and categorize leave.\n\n4. **Load Data**:\n   - Load transformed data into `employees_temp`.\n\n5. **Merge Data**:\n   - Merge data from `employees_temp` into `employees`.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\nFor questions or issues, please open an issue on GitHub.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffistgang%2Fprocessemployeesetl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffistgang%2Fprocessemployeesetl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffistgang%2Fprocessemployeesetl/lists"}