{"id":50851958,"url":"https://github.com/quantrpeter/peter-diff","last_synced_at":"2026-06-14T14:04:19.980Z","repository":{"id":359698472,"uuid":"1246575384","full_name":"quantrpeter/peter-diff","owner":"quantrpeter","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-23T01:27:01.000Z","size":2092,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T14:04:16.255Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/quantrpeter.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-22T10:28:50.000Z","updated_at":"2026-05-23T01:27:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/quantrpeter/peter-diff","commit_stats":null,"previous_names":["quantrpeter/peter-diff"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/quantrpeter/peter-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantrpeter%2Fpeter-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantrpeter%2Fpeter-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantrpeter%2Fpeter-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantrpeter%2Fpeter-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quantrpeter","download_url":"https://codeload.github.com/quantrpeter/peter-diff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantrpeter%2Fpeter-diff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34324004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":[],"created_at":"2026-06-14T14:04:15.518Z","updated_at":"2026-06-14T14:04:19.968Z","avatar_url":"https://github.com/quantrpeter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# peter-diff\n\nA Python CLI tool for side-by-side diffing of files and folders.\n\n![](image/2026-05-23T01_18_19.png)\n\n## Installation\n\n```bash\npip install -e .\n```\nOR\n\n```sh\npip install peter-diff\n```\n\n## Usage\n\n### Compare two files\n\n```sh\npeter-diff file1.txt file2.txt\n```\n\nDisplays a side-by-side diff with line numbers. Changed characters within a line are highlighted. Identical files print `same`.\n\n![](image/file.png)\n\n### Compare two folders\n\n```sh\npeter-diff dir1/ dir2/\n```\n\nDisplays a side-by-side tree view of both directories:\n\n![](image/folder.png)\n\nStatus indicators:\n| Symbol | Meaning |\n|--------|---------|\n| *(none)* | identical |\n| `diff` | file differs |\n| `←` | only in left folder |\n| `→` | only in right folder |\n| `bin` | binary / unreadable, skipped |\n\n\n### Flags\n\n| Flag | Description |\n|------|-------------|\n| `-o` | Only show differences — hide identical files/lines |\n\n## Publishing to PyPI\n\n```\npip install build twine\npython -m build\ntwine upload dist/*\n```\n\nWhen prompted, use `__token__` as the username and your PyPI API token as the password.\n\nTo skip the prompt, create a `~/.pypirc` file:\n\n```ini\n[pypi]\nusername = __token__\npassword = pypi-YOUR-TOKEN-HERE\n```\n\n\u003e **Note:** Bump the `version` in `pyproject.toml` before each upload — PyPI rejects duplicate version numbers.\n\n## Requirements\n\n- Python \u003e= 3.9\n- No external dependencies\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantrpeter%2Fpeter-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantrpeter%2Fpeter-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantrpeter%2Fpeter-diff/lists"}