{"id":34751324,"url":"https://github.com/onerandomusername/ghretos","last_synced_at":"2026-04-22T06:45:06.639Z","repository":{"id":321362881,"uuid":"1082288330","full_name":"onerandomusername/ghretos","owner":"onerandomusername","description":"Parse GitHub html_urls into a machine readable form ","archived":false,"fork":false,"pushed_at":"2025-11-27T18:06:29.000Z","size":177,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-28T22:43:04.618Z","etag":null,"topics":["github"],"latest_commit_sha":null,"homepage":"https://ghretos.readthedocs.io/","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/onerandomusername.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":"2025-10-24T02:44:30.000Z","updated_at":"2025-11-27T18:06:33.000Z","dependencies_parsed_at":"2025-10-29T09:15:38.847Z","dependency_job_id":"8b5b38f5-8eea-4135-8c81-efcb9742b5fe","html_url":"https://github.com/onerandomusername/ghretos","commit_stats":null,"previous_names":["onerandomusername/ghretos"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onerandomusername/ghretos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onerandomusername%2Fghretos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onerandomusername%2Fghretos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onerandomusername%2Fghretos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onerandomusername%2Fghretos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onerandomusername","download_url":"https://codeload.github.com/onerandomusername/ghretos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onerandomusername%2Fghretos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28020361,"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-25T02:00:05.988Z","response_time":58,"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":["github"],"created_at":"2025-12-25T05:19:10.153Z","updated_at":"2025-12-25T05:19:10.781Z","avatar_url":"https://github.com/onerandomusername.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghretos\n\n\u003csup\u003ethe name was off the cuff, consider [suggesting][issues] a new one\u003c/sup\u003e\n\nGhretos exists to take a GitHub source URL and parse it into the resource that it points to. Whereas the GitHub API provides an `html_url` for every object, Ghretos aims to provide a parsed object for each `html_url`. While Ghretos is still very much in beta, it is used in [Monty Python], my Discord Bot, to power the detection of GitHub URLs in Discord messages and replace them with actually useful embeds.\n\n[issues]: https://github.com/onerandomusername/ghretos/issues/new/choose\n[Monty Python]: https://github.com/onerandomusername/monty-python/pull/738\n\n## How it works\n\nUse ``parse_url`` to retrieve a ghretos.GitHubResource from an arbitrary URL. If the URL does not match, ``None`` will be returned.\n\nIf you wish to have control over what parse_url matches, you can provide a ``MatcherSettings`` object to parse_url which will be used to control what objects are matched.\nThis can be useful if you have only implemented support for a specific number of GitHub resources.\nBy default, all supported GitHub source URLs are matched.\n\n## Todo\n\n- [ ] Full support for GHES and GHEC\n- [ ] Provide api.github.com and equivalent URLs on matched objects (when possible) for full reversal\n- [ ] Potential integration with [githubkit][].\n\n[githubkit]: https://pypi.org/p/githubkit\n\n\n## Links\n\nThe documentation can be found at [readthedocs][rtd].\n\n\n[rtd]: https://ghretos.readthedocs.io\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonerandomusername%2Fghretos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonerandomusername%2Fghretos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonerandomusername%2Fghretos/lists"}