{"id":19779376,"url":"https://github.com/joeirimpan/hdfc-cc-parser-rs","last_synced_at":"2025-06-24T08:02:12.305Z","repository":{"id":65648188,"uuid":"596508412","full_name":"joeirimpan/hdfc-cc-parser-rs","owner":"joeirimpan","description":"Parse hdfc cc statements into csv (regalia, freedom, infinia)","archived":false,"fork":false,"pushed_at":"2025-01-02T07:34:24.000Z","size":24,"stargazers_count":37,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-24T08:02:00.272Z","etag":null,"topics":["card","credit","csv","hdfc","pdf","statements"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/joeirimpan.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}},"created_at":"2023-02-02T10:38:07.000Z","updated_at":"2025-02-20T11:28:04.000Z","dependencies_parsed_at":"2024-02-06T12:49:41.365Z","dependency_job_id":"79941775-8bcd-44b9-8edd-a9a8d6003b24","html_url":"https://github.com/joeirimpan/hdfc-cc-parser-rs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/joeirimpan/hdfc-cc-parser-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeirimpan%2Fhdfc-cc-parser-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeirimpan%2Fhdfc-cc-parser-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeirimpan%2Fhdfc-cc-parser-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeirimpan%2Fhdfc-cc-parser-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeirimpan","download_url":"https://codeload.github.com/joeirimpan/hdfc-cc-parser-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeirimpan%2Fhdfc-cc-parser-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261632035,"owners_count":23187268,"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":["card","credit","csv","hdfc","pdf","statements"],"created_at":"2024-11-12T05:34:32.637Z","updated_at":"2025-06-24T08:02:12.231Z","avatar_url":"https://github.com/joeirimpan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HDFC CC bill parser\n\nThis tool parse and extract information from HDFC Bank credit card statements in .csv format. The extracted information can be used for personal finance management or analytics purposes.\n\n## Features\n\n* Extracts transaction details such as date, description, points, amount\n* Multiple pdfs can be parsed and collated into 1 CSV.\n\n## Requirements\n\n* Rust\n* HDFC credit card statements\n\n## Usage\n* Clone this repository: `git clone https://github.com/joeirimpan/hdfc-cc-parser-rs.git`\n* Navigate to the repository directory: cd hdfc-cc-parser-rs\n* Build the project: `cargo build --release`\n* Run the binary: `./target/release/hdfc-cc-parser-rs --name=\"NAME_AS_PER_STATEMENT\" --dir \u003coptional statements directory\u003e --file \u003coptional file path\u003e --password \u003coptional password\u003e --sortformat=\"optional format eg., %d-%m-%Y\"`\n\n## Why?\n\nA similar python implementation which uses tabula-py took 70s+ to generate a csv with 8 pdfs. With this implementation, it took only 0.02s to generate the same.\n\n## Analytics\n\nAssuming `clickhouse-local` is installed\n\n* Get the points accumulated\n```bash\ncat output.csv | clickhouse-local --structure \"tx_date Datetime, tx String, points Int32, amount Float32\" --query \"SELECT SUM(points) FROM table\" --input-format CSV\n```\n\n* Get the debits\n```bash\ncat output.csv | clickhouse-local --structure \"tx_date Datetime, tx String, points Int32, amount Float32\" --query \"SELECT SUM(amount) FROM table WHERE amount \u003c 0\" --input-format CSV\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeirimpan%2Fhdfc-cc-parser-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeirimpan%2Fhdfc-cc-parser-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeirimpan%2Fhdfc-cc-parser-rs/lists"}