{"id":19026570,"url":"https://github.com/sbdchd/codeowners","last_synced_at":"2025-04-07T11:07:10.509Z","repository":{"id":40328765,"uuid":"200386032","full_name":"sbdchd/codeowners","owner":"sbdchd","description":":honeybee: A Python library for codeowners files","archived":false,"fork":false,"pushed_at":"2024-03-07T23:35:26.000Z","size":76,"stargazers_count":41,"open_issues_count":7,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T10:03:34.684Z","etag":null,"topics":["codeowners","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbdchd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"codeowners/__init__.py","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-03T14:40:16.000Z","updated_at":"2025-02-28T10:24:07.000Z","dependencies_parsed_at":"2024-06-18T18:42:16.391Z","dependency_job_id":"cb65651a-ccac-48b8-8de6-041d1f74f8b9","html_url":"https://github.com/sbdchd/codeowners","commit_stats":{"total_commits":35,"total_committers":8,"mean_commits":4.375,"dds":"0.19999999999999996","last_synced_commit":"53a7a9533ab455b0aa3f35f599558a2e1a1e97b7"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fcodeowners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fcodeowners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fcodeowners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbdchd%2Fcodeowners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbdchd","download_url":"https://codeload.github.com/sbdchd/codeowners/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640462,"owners_count":20971557,"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":["codeowners","python"],"created_at":"2024-11-08T20:49:42.312Z","updated_at":"2025-04-07T11:07:10.479Z","avatar_url":"https://github.com/sbdchd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codeowners [![CircleCI](https://circleci.com/gh/sbdchd/codeowners.svg?style=svg)](https://circleci.com/gh/sbdchd/codeowners) [![pypi](https://img.shields.io/pypi/v/codeowners.svg)](https://pypi.org/project/codeowners/)\n\n\u003e Python codeowners parser based on [softprops's Rust\n\u003e library](https://crates.io/crates/codeowners) and [hmarr's Go\n\u003e library](https://github.com/hmarr/codeowners/).\n\n## Why?\n\nTo allow Python users to parse [codeowners\nfiles](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax)\nin Python.\n\n## Install\n\n```shell\npip install codeowners\n```\n\n## Usage\n\n```python\nfrom codeowners import CodeOwners\n\nexample_file = \"\"\"\\\n# owners for js files\n*.js    @ghost\n# python\n*.py user@example.com\n# misc\n/build/logs/ @dmin\ndocs/*  docs@example.com\n\"\"\"\n\nowners = CodeOwners(example_file)\nassert owners.of(\"test.js\") ==  [('USERNAME', '@ghost')]\n```\n\n## Dev\n\n```shell\npoetry install\n\ns/test\n\ns/lint\n```\n\n## Releasing a New Version\n\n```shell\n# bump version in pyproject.toml\n\n# update CHANGELOG.md\n\n# commit release commit to GitHub\n\n# build and publish\npoetry publish --build\n\n# create a release in the GitHub UI\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdchd%2Fcodeowners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbdchd%2Fcodeowners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbdchd%2Fcodeowners/lists"}