{"id":27938919,"url":"https://github.com/xiyoo0812/luaxlsx","last_synced_at":"2025-07-03T02:03:12.812Z","repository":{"id":53923634,"uuid":"276563630","full_name":"xiyoo0812/luaxlsx","owner":"xiyoo0812","description":"一个使用lua解析excel的xlsx/xlsm格式的库。","archived":false,"fork":false,"pushed_at":"2025-03-03T09:06:38.000Z","size":433,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T08:58:31.027Z","etag":null,"topics":["excel","lua","xlsm","xlsx"],"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/xiyoo0812.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-07-02T06:11:29.000Z","updated_at":"2025-04-09T10:16:22.000Z","dependencies_parsed_at":"2025-05-07T08:58:31.859Z","dependency_job_id":"2b870b0a-443a-48d7-9edd-9359addd21a7","html_url":"https://github.com/xiyoo0812/luaxlsx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xiyoo0812/luaxlsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiyoo0812%2Fluaxlsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiyoo0812%2Fluaxlsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiyoo0812%2Fluaxlsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiyoo0812%2Fluaxlsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiyoo0812","download_url":"https://codeload.github.com/xiyoo0812/luaxlsx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiyoo0812%2Fluaxlsx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263245241,"owners_count":23436510,"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":["excel","lua","xlsm","xlsx"],"created_at":"2025-05-07T08:58:28.460Z","updated_at":"2025-07-03T02:03:12.759Z","avatar_url":"https://github.com/xiyoo0812.png","language":"C","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# luaxlsx\n一个使用lua解析excel的xlsx/xlsm格式的库。\n\n# 依赖\n- miniz (已经包含在库内)\n- [lua](https://github.com/xiyoo0812/lua.git)5.2以上\n- [luakit](https://github.com/xiyoo0812/luakit.git)一个luabind库\n- 项目路径如下\u003cbr\u003e\n  |--proj \u003cbr\u003e\n  \u0026emsp;|--lua \u003cbr\u003e\n  \u0026emsp;|--luaxlsx \u003cbr\u003e\n  \u0026emsp;|--luakit\n\n# 编译\n- msvc: 准备好lua依赖库并放到指定位置，将proj文件加到sln后编译。\n- linux: 准备好lua依赖库并放到指定位置，执行make -f luaxlsx.mak\n\n# 注意事项\n- mimalloc: 参考[quanta](https://github.com/xiyoo0812/quanta.git)使用，不用则在工程文件中注释\n\n# 用法\n```lua\nlocal lexcel = require('luaxlsx')\n\nlocal workbook = lexcel.open(full_name)\nif not workbook then\n    rint(sformat(\"open excel %s failed!\", file))\n    return\nend\n--只导出sheet1\nlocal sheets = workbook.sheets()\nlocal sheet = sheets and sheets[1]\n\n--sheet_name\nlocal sheet_name = sheet.name\nfor row = dim.first_row_, dim.last_row_ do\n    for col = dim.first_col_, dim.last_col_ do\n        local cell = sheet.get_cell(row, col)\n        print(cell.type, cell.value)\n    end\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiyoo0812%2Fluaxlsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiyoo0812%2Fluaxlsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiyoo0812%2Fluaxlsx/lists"}