{"id":31740397,"url":"https://github.com/srikarkunta/de_coding_task","last_synced_at":"2026-04-17T04:33:53.480Z","repository":{"id":317693521,"uuid":"1068296855","full_name":"SRIKARKUNTA/De_coding_task","owner":"SRIKARKUNTA","description":"Python project to download, clean, and process order item CSV files. Includes data cleaning, logging, JSON stats, and monthly metrics generation.","archived":false,"fork":false,"pushed_at":"2025-10-02T12:05:48.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-02T14:11:57.132Z","etag":null,"topics":["csv","datacleaning","dataengineering","pandas","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/SRIKARKUNTA.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-02T07:01:08.000Z","updated_at":"2025-10-02T12:05:52.000Z","dependencies_parsed_at":"2025-10-06T06:36:06.877Z","dependency_job_id":null,"html_url":"https://github.com/SRIKARKUNTA/De_coding_task","commit_stats":null,"previous_names":["srikarkunta/de_coding_task"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/SRIKARKUNTA/De_coding_task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SRIKARKUNTA%2FDe_coding_task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SRIKARKUNTA%2FDe_coding_task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SRIKARKUNTA%2FDe_coding_task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SRIKARKUNTA%2FDe_coding_task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SRIKARKUNTA","download_url":"https://codeload.github.com/SRIKARKUNTA/De_coding_task/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SRIKARKUNTA%2FDe_coding_task/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001320,"owners_count":26083040,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["csv","datacleaning","dataengineering","pandas","python"],"created_at":"2025-10-09T10:18:34.802Z","updated_at":"2025-10-09T10:18:35.879Z","avatar_url":"https://github.com/SRIKARKUNTA.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSV Processor\n\nA Python-based project  downloads a CSV file from a provided URL, saves it with a timestamp, cleans the data by removing duplicates and empty rows, logs discarded rows, and produces a JSON stats file and a monthly metrics CSV.\n\n📌 Assumptions\n- Input CSV has columns:\n  - `order_date` (in `YYYY-MM-DD` format)\n  - `item_price` (float)\n  - `item_promo_discount` (float)  \n- System has enough memory to load a ~1GB CSV into Pandas (16GB+ RAM recommended).  \n- No extra invalid row checks beyond:\n  - Empty rows\n  - Duplicates\n  - Invalid date formats (discarded)\n- Therefore, `\"total_invalid_rows_discarded\"` in stats is always `0`.  \n\n\n## Setup\n\n1. Install Poetry: `pip install poetry`\n2. Install dependencies: `poetry install`\n\n**##📂 Project Structure**\ncsv-processor/\n├── src/\n│   ├── main.py                 # CLI entrypoint\n│   └── csv_processor/\n│       ├── clean.py            # Data cleaning logic\n│       ├── download.py         # Streaming CSV download\n│       ├── metrics.py          # Monthly aggregation calculations\n│       └── stats.py            # Processing statistics (JSON output)\n│\n├── tests/\n│   ├── __init__.py\n│   └── test_clean.py           # Unit tests for cleaning module\n│\n├── pyproject.toml              # Poetry dependencies \u0026 build config\n├── README.md                   # Project documentation\n└── .gitignore                  # Ignore large outputs and build artifacts\n\n## How to Run\n\nRun via CLI with the URL argument:\n\n`poetry run python src/main.py --url https://storage.googleapis.com/nozzle-csv-exports/testing-data/order_items_data_2_.csv`\n\n\nOutputs:\nWhen you run the pipeline, the following files are generated in the working directory:\n\n**order_items_\u003ctimestamp\u003e.csv** → raw downloaded file\n\n**discarded_rows.csv** → rows removed during cleaning\n\n**processing_stats.json** → summary of processing (rows kept, discarded, invalid)\n\n**monthly_metrics.csv** → monthly aggregated metrics\n\n⚠️Note: These files are listed in .gitignore, so they won’t appear in the GitHub repo, but they will be created locally every time you run the program.\n\n## How to Execute Tests\n\n`poetry run pytest`\n\nTests cover basic cleaning functionality using a sample in-memory DataFrame.\n\n## 👨‍💻 Author\n- **Srikar Kunta**  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrikarkunta%2Fde_coding_task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrikarkunta%2Fde_coding_task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrikarkunta%2Fde_coding_task/lists"}