{"id":34122997,"url":"https://github.com/cutereimu/threp","last_synced_at":"2025-12-14T22:03:27.322Z","repository":{"id":37340978,"uuid":"444522070","full_name":"CuteReimu/threp","owner":"CuteReimu","description":"解析东方Project的replay文件的Go语言版本","archived":false,"fork":false,"pushed_at":"2025-09-10T06:33:55.000Z","size":165,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-10T09:56:15.122Z","etag":null,"topics":["golang","touhou","touhou-danmakufu","touhou-project","touhou-replays"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CuteReimu.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-01-04T18:21:25.000Z","updated_at":"2025-09-10T06:33:58.000Z","dependencies_parsed_at":"2024-05-07T04:32:17.317Z","dependency_job_id":"13cbd61e-df16-43ae-b7a9-28acddb716f2","html_url":"https://github.com/CuteReimu/threp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/CuteReimu/threp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuteReimu%2Fthrep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuteReimu%2Fthrep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuteReimu%2Fthrep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuteReimu%2Fthrep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CuteReimu","download_url":"https://codeload.github.com/CuteReimu/threp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CuteReimu%2Fthrep/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27737690,"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","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["golang","touhou","touhou-danmakufu","touhou-project","touhou-replays"],"created_at":"2025-12-14T22:03:24.433Z","updated_at":"2025-12-14T22:03:27.294Z","avatar_url":"https://github.com/CuteReimu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# threp\n\n![](https://img.shields.io/github/languages/top/CuteReimu/threp \"语言\")\n[![](https://img.shields.io/github/actions/workflow/status/CuteReimu/threp/go.yml?branch=master)](https://github.com/CuteReimu/threp/actions/workflows/go.yml \"代码分析\")\n[![](https://img.shields.io/github/contributors/CuteReimu/threp)](https://github.com/CuteReimu/threp/graphs/contributors \"贡献者\")\n[![](https://img.shields.io/badge/License-LGPL--3.0-orange)](https://github.com/CuteReimu/threp/blob/master/LICENSE.LGPLv3 \"许可协议\")\n[![](https://img.shields.io/badge/License-BY--NC--SA%203.0-lightgrey)](https://github.com/CuteReimu/threp/blob/master/LICENSE \"许可协议\")\n\n解析东方Project的replay文件的Go语言版本\n\n这个仓库是在score.royalflare.net即将关站前夕，为纪念它而写的。现将该网站上开源的python解析replay文件的代码转化为Go语言版本。\n\n## 安装方法\n\n```bash\ngo get github.com/CuteReimu/threp\n```\n\n## 使用方法\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/CuteReimu/threp\"\n\t\"os\"\n)\n\nfunc main() {\n\tf, _ := os.Open(`th12_ud0001.rpy`)\n\tdefer f.Close()\n\tresult, _ := threp.DecodeNewReplay(f)\n\tfmt.Println(result.String())\n}\n```\n\n## 函数说明\n\n- `DecodeTh6Replay`、`DecodeTh7Replay`、`DecodeTh8Replay`分别用来解析th6、th7、th8三作的rpy文件。\n- `DecodeNewReplay`用来解析th95及以后各作的rpy文件\n- `DecodeReplay`用来解析任意一作的rpy文件，返回`RepInfo`接口\n\n## 进度\n\n- [x] 东方红魔乡\n- [x] 东方妖妖梦\n- [x] 东方永夜抄\n- [x] 东方文花帖\n- [x] 东方风神录\n- [x] 东方地灵殿\n- [x] 东方星莲船\n- [x] 东方文花帖DS\n- [x] 妖精大战争\n- [x] 东方神灵庙\n- [x] 东方辉针城\n- [x] 东方绀珠传\n- [x] 东方天空璋\n- [x] 秘封噩梦日记\n- [x] 东方鬼形兽\n- [x] 东方虹龙洞\n- [x] 黄昏酒场\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutereimu%2Fthrep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcutereimu%2Fthrep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcutereimu%2Fthrep/lists"}