{"id":23090000,"url":"https://github.com/ikegee/csv-console-table-c","last_synced_at":"2025-06-18T08:34:59.413Z","repository":{"id":264245169,"uuid":"892812843","full_name":"ikegee/csv-console-table-c","owner":"ikegee","description":"Create snapshots of CSV files in console tables using C.","archived":false,"fork":false,"pushed_at":"2024-11-22T23:50:56.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T17:52:56.506Z","etag":null,"topics":["ansi-c","c","c-programming","console-application","csv-files","csv-processing","csv-reading","table-generator","table-view"],"latest_commit_sha":null,"homepage":"","language":"C","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/ikegee.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-11-22T20:37:25.000Z","updated_at":"2025-01-03T08:54:17.000Z","dependencies_parsed_at":"2025-04-03T17:52:48.902Z","dependency_job_id":null,"html_url":"https://github.com/ikegee/csv-console-table-c","commit_stats":null,"previous_names":["ikegee/csv-console-table-c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ikegee/csv-console-table-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikegee","download_url":"https://codeload.github.com/ikegee/csv-console-table-c/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikegee%2Fcsv-console-table-c/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260519084,"owners_count":23021402,"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":["ansi-c","c","c-programming","console-application","csv-files","csv-processing","csv-reading","table-generator","table-view"],"created_at":"2024-12-16T20:51:56.575Z","updated_at":"2025-06-18T08:34:54.403Z","avatar_url":"https://github.com/ikegee.png","language":"C","readme":"# CSV Console Table in C\r\n\r\nThis C implementation provides precise control over data validation and table formatting, ensuring column types match while creating clean, aligned console output - making it ideal for consistent data snapshots and type verification.\r\n\r\n## Example Input CSV ([`generic.csv`](data/generic.csv)):\r\n\r\n```csv\r\n1,\"Welcome to csv-console-table-c\",9.98,UNKOWN,1,true\r\n2,\"This is a sample data csv file\",19.97,321654AE,2,false\r\n3,\"1st row: set header types\",1.99,\"null\",3,true\r\n4,\"Detect headers: 'int *char float *char int bool'\",11.99,NULL,4,true\r\n5,\"Unknown types become `*char/string`\",19.97,OU812,5,true\r\n6,\"'gcc -o xyz .\\csv_console_table.c'\",19.17,\"string\",6,true\r\n7,\"'.\\xyz .\\yourfile.csv'\",19.84,\"*char\",7,false\r\n```\r\n\r\n## Example Output \r\n\r\n![Console Output](screenshots/csv_console_example.png)\r\n\r\n## Features\r\n\r\n- Reads CSV files and displays data in aligned console tables\r\n- Validates data types against column headers\r\n- Handles dynamic content with proper memory management\r\n- Supports customizable column widths and formatting\r\n\r\n## Usage\r\n\r\n- **PowerShell**:\r\n   - gcc -o csv_table csv_console_table.c\r\n   - ./csv_table generic.csv\r\n\r\n- Please see [Console Output](screenshots/csv_console_example.txt) for example output\r\n\r\n## Requirements\r\n \r\n - C compiler (gcc recommended)\r\n - Standard C libraries\r\n\r\n## Purpose\r\n\r\n- This implementation provides:\r\n   - Create a \"Snapshot\" view using custom control over data validation and display\r\n   - Ensure data integrity through type checking\r\n   - Platform independence\r\n   - Educational resource for C development practices\r\n\r\n## Similar Built-in Commands\r\n\r\nWhile this project serves as both a learning implementation and custom solution, here are equivalent commands in other environments (Requires named columns, \"id\", \"name\", \"age\"...):\r\n\r\n- **PowerShell**:\r\n   -Import-Csv \"data.csv\" | Format-Table\r\n\r\n- **BASH**:\r\n   -csvcut -c 1,2,3 data.csv\r\n\r\n## License\r\n \r\n - This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikegee%2Fcsv-console-table-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikegee%2Fcsv-console-table-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikegee%2Fcsv-console-table-c/lists"}