{"id":17259496,"url":"https://github.com/muneeb706/data-engineering-samples","last_synced_at":"2025-03-26T09:24:12.517Z","repository":{"id":250524230,"uuid":"834658796","full_name":"muneeb706/data-engineering-samples","owner":"muneeb706","description":"Respository that contains sample data engineering tasks","archived":false,"fork":false,"pushed_at":"2024-08-05T01:04:01.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T10:42:19.413Z","etag":null,"topics":["kafka","pymongo","pyspark","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muneeb706.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-28T00:36:23.000Z","updated_at":"2024-08-05T01:05:02.000Z","dependencies_parsed_at":"2024-08-05T02:55:09.785Z","dependency_job_id":"905b313a-e4b1-4891-9d26-25e8e161da49","html_url":"https://github.com/muneeb706/data-engineering-samples","commit_stats":null,"previous_names":["muneeb706/data-engineering-samples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneeb706%2Fdata-engineering-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneeb706%2Fdata-engineering-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneeb706%2Fdata-engineering-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muneeb706%2Fdata-engineering-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muneeb706","download_url":"https://codeload.github.com/muneeb706/data-engineering-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245623903,"owners_count":20645846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["kafka","pymongo","pyspark","python"],"created_at":"2024-10-15T07:45:15.301Z","updated_at":"2025-03-26T09:24:12.483Z","avatar_url":"https://github.com/muneeb706.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Data Engineering Samples\nContains sample implementation of data engineering tasks.\n\n- [How to Shard Streaming Data with Apache Kafka](https://github.com/muneeb706/data-engineering-samples/tree/main/streaming/multiple_shards)\n    1. Set up a Kafka cluster on your local machine and run it on port 9092 ([Quickstart guide](https://kafka.apache.org/quickstart)).\n    2. Create a shard topic with multiple partitions `python kafka_admin.py`\n    3. Run the producer to send messages to partitions of the topic `python producer.py`\n    5. Run consumers to consume data from each partition e-g `python consumers/part_1_consumer.py`\n    6. Monitor partition assignment `python monitor.py`\n\n- [How to build patient profile by aggregating data from various sources using PySpark](https://github.com/muneeb706/data-engineering-samples/tree/main/map_reduce/build_patient_profile)\n\n    This project demonstrate how to reads patient data from multiple CSV files, combine and process the data using PySpark, and save the resulting patient profiles to a MongoDB collection for further analysis and querying.\n    1. Install Requirements `pip install -r requirements.txt`.\n    2. Generate sample data `python data_generator.py`\n    3. Run script to read, aggregate, and save data to MongoDB using PySpark `python read_data_spark.py`. Data will be saved in db (medical_db.patient).\n    5. Run script to read and print data for patient with given patient_id e-g `python read_data_mongo.py --patient_id=patient_99`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneeb706%2Fdata-engineering-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuneeb706%2Fdata-engineering-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuneeb706%2Fdata-engineering-samples/lists"}