{"id":17178018,"url":"https://github.com/hahnlee/hwp-rs","last_synced_at":"2025-04-05T16:08:13.325Z","repository":{"id":61109943,"uuid":"542498209","full_name":"hahnlee/hwp-rs","owner":"hahnlee","description":"Rust based hwp parser and tools","archived":false,"fork":false,"pushed_at":"2022-11-11T10:35:15.000Z","size":4041,"stargazers_count":209,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T15:07:48.027Z","etag":null,"topics":["hwp","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/hwp/latest/hwp","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hahnlee.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}},"created_at":"2022-09-28T09:00:06.000Z","updated_at":"2025-03-14T06:11:55.000Z","dependencies_parsed_at":"2023-01-21T15:02:40.024Z","dependency_job_id":null,"html_url":"https://github.com/hahnlee/hwp-rs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahnlee%2Fhwp-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahnlee%2Fhwp-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahnlee%2Fhwp-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hahnlee%2Fhwp-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hahnlee","download_url":"https://codeload.github.com/hahnlee/hwp-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361689,"owners_count":20926643,"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":["hwp","rust"],"created_at":"2024-10-15T00:05:57.611Z","updated_at":"2025-04-05T16:08:13.279Z","avatar_url":"https://github.com/hahnlee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HWP-RS\n\u003e 본 제품은 한글과컴퓨터의 한/글 문서 파일(.hwp) 공개 문서를 참고하여 개발하였습니다.\n\nRust로 작성된 hwp파서와 각종 도구들\n\n[hwp-rs와 libhwp를 공개합니다](https://blog.hanlee.io/2022/hwp-rs)\n\n\n- [hwp-rs](./crates/hwp) Rust로 작성된 로우레벨 hwp 파서\n- [libhwp](./crates/python) Rust로 작성된 Python hwp 리더 라이브러리\n```python\nfrom libhwp import HWPReader\n\nhwp = HWPReader('\u003c파일 경로\u003e')\n\n# 모든 문단 출력 (표, 캡션 포함)\nfor paragraph in hwp.find_all('paragraph'):\n    print(paragraph)\n\n# 테이블 내용 출력\nfor table in hwp.find_all('table'):\n    for cell in table.cells:\n        for paragraph in cell.paragraphs:\n            print(paragraph)\n\n# 문서에 사용된 파일 저장\nfor file in hwp.bin_data:\n    with open(file.name, 'wb') as f:\n        f.write(file.data)\n```\n\n# 개발가이드\n[가이드 문서](./docs/development.md)를 참고해주세요\n\n# 다른언어 바인딩은 지원 계획이 있나요?\n없습니다.\n\n하지만 [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)을 이용한 웹 어셈블리 바인딩은 준비중이며, [napi-rs](https://napi.rs)를 사용한 node 바인딩은 고려하고 있습니다.\n\n필요시 hwp-rs를 직접 바인딩하여 사용해주세요. 만약 장기적인 관리를 해주실 수 있다면 [discussions](https://github.com/hahnlee/hwp-rs/discussions)에 알려주세요.\n\n# License\n```\nCopyright Han Lee \u003chanlee.dev@gmail.com\u003e and other contributors\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhahnlee%2Fhwp-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhahnlee%2Fhwp-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhahnlee%2Fhwp-rs/lists"}