Skip to main content

Codeowners parser for Python

Project description

codeowners CircleCI pypi

Python codeowners parser based on softprops's Rust library and hmarr's Go library.


To allow Python users to parse codeowners files in Python.


pip install codeowners


from codeowners import CodeOwners

example_file = """\
# owners for js files
*.js    @ghost
# python
# misc
/build/logs/ @dmin

owners = CodeOwners(example_file)
assert owners.of("test.js") ==  [('USERNAME', '@ghost')]


poetry install



Releasing a New Version

# bump version in pyproject.toml

# update

# commit release commit to GitHub

# build and publish
poetry publish --build

# create a release in the GitHub UI

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codeowners-0.6.0.tar.gz (8.0 kB view hashes)

Uploaded source

Built Distribution

codeowners-0.6.0-py3-none-any.whl (8.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page