{"id":16167069,"url":"https://github.com/xlucn/docdiff","last_synced_at":"2026-02-28T04:02:06.397Z","repository":{"id":91304718,"uuid":"478385668","full_name":"xlucn/docdiff","owner":"xlucn","description":"Compare two text documents, and show differences in browser or terminal","archived":false,"fork":false,"pushed_at":"2024-09-04T02:13:12.000Z","size":65,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T02:40:54.423Z","etag":null,"topics":["diff","flask","plaintext"],"latest_commit_sha":null,"homepage":"https://xlu.pythonanywhere.com/docdiff.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xlucn.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}},"created_at":"2022-04-06T03:15:58.000Z","updated_at":"2024-01-31T14:27:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"90353c65-6ac0-45be-ae98-8919df168a6b","html_url":"https://github.com/xlucn/docdiff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xlucn/docdiff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Fdocdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Fdocdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Fdocdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Fdocdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xlucn","download_url":"https://codeload.github.com/xlucn/docdiff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlucn%2Fdocdiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29924719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T19:37:42.220Z","status":"online","status_checked_at":"2026-02-28T02:00:07.010Z","response_time":90,"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":["diff","flask","plaintext"],"created_at":"2024-10-10T03:05:44.720Z","updated_at":"2026-02-28T04:02:06.391Z","avatar_url":"https://github.com/xlucn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 文档对比工具\n\n自动对比两份纯文本文档，以不同颜色高亮形式输出。\n\n增删部分分两行显示，无变化部分仅显示一行原文。\n\nDemo： https://xlu.pythonanywhere.com/docdiff.html\n\n## 使用方法\n\n### 作为flask应用\n\n```sh\ngunicorn docdiff:app\n```\n\n或者\n\n```sh\npython docdiff.py -r\n```\n\n### 终端运行\n\n注意：终端需支持标准的颜色转义字符串（如尝试执行`printf \"\\e[31mRed\\e[0m\\n\"`）\n\n```\nusage: docdiff.py [-h] [-f FILE FILE] [-l] [-r]\n\noptions:\n  -h, --help            show this help message and exit\n  -f FILE FILE, --file FILE FILE\n                        Input files\n  -l, --line            Fast line-by-line comparison\n  -r, --run-flask       Run built-in flask app in terminal\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlucn%2Fdocdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlucn%2Fdocdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlucn%2Fdocdiff/lists"}