{"id":20572876,"url":"https://github.com/zlgopen/awtk-csv-file","last_synced_at":"2026-02-13T21:35:02.201Z","repository":{"id":76747713,"uuid":"270516877","full_name":"zlgopen/awtk-csv-file","owner":"zlgopen","description":"a library to access CSV file","archived":false,"fork":false,"pushed_at":"2024-10-15T08:19:30.000Z","size":183,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-07T20:01:02.709Z","etag":null,"topics":["csv"],"latest_commit_sha":null,"homepage":"","language":"C","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/zlgopen.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":"2020-06-08T03:38:29.000Z","updated_at":"2024-10-15T08:19:34.000Z","dependencies_parsed_at":"2023-11-22T11:26:59.480Z","dependency_job_id":"d42f794e-8068-44ba-a9e5-07e7e6944528","html_url":"https://github.com/zlgopen/awtk-csv-file","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zlgopen/awtk-csv-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlgopen%2Fawtk-csv-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlgopen%2Fawtk-csv-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlgopen%2Fawtk-csv-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlgopen%2Fawtk-csv-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zlgopen","download_url":"https://codeload.github.com/zlgopen/awtk-csv-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zlgopen%2Fawtk-csv-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29418582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"],"created_at":"2024-11-16T05:24:23.154Z","updated_at":"2026-02-13T21:35:02.176Z","avatar_url":"https://github.com/zlgopen.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# awtk-csv-file\n\n操作 [CSV 文件](https://en.wikipedia.org/wiki/Comma-separated_values) 库。主要特色：\n\n* 读写文件。\n* 遍历数据。\n* 支持数据过滤。\n* 支持与 MVVM 绑定。\n\n## 准备\n\n1. 获取 awtk 并编译\n\n```\ngit clone https://github.com/zlgopen/awtk.git\ncd awtk; scons; cd -\n```\n\n2. 获取 awtk-csv-file 并编译\n```\ngit clone https://github.com/zlgopen/awtk-csv-file.git\ncd awtk-csv-file; scons\n```\n\n## 运行示例\n\n```\n./bin/csv_dump\n```\n\n## 示例\n\n```c\nstatic void csv_file_demo(const char* filename) {\n  uint32_t r = 0;\n  uint32_t c = 0;\n  csv_file_t* csv = csv_file_create(filename, ',');\n\n  uint32_t rows = csv_file_get_rows(csv);\n  uint32_t cols = csv_file_get_cols(csv);\n\n  if (csv-\u003ehas_title) {\n    r++;\n    log_debug(\"title:%s\\n\", csv_file_get_title(csv));\n  }\n\n  for (; r \u003c rows; r++) {\n    log_debug(\"%d: \", r);\n    for (c = 0; c \u003c cols; c++) {\n      log_debug(\"%s, \", csv_file_get(csv, r, c));\n    }\n    log_debug(\"\\n\");\n  }\n\n  csv_file_save(csv, \"output.csv\");\n  csv_file_destroy(csv);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzlgopen%2Fawtk-csv-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzlgopen%2Fawtk-csv-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzlgopen%2Fawtk-csv-file/lists"}