Skip to main content

Codeowners parser for Python

Project description

codeowners CircleCI pypi

Python codeowners parser based on softprops's Rust codeowners 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

# build
poetry build -f wheel

# build and publish
poetry publish --build

Project details

Download files

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

Files for codeowners, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size codeowners-0.2.0.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View
Filename, size codeowners-0.2.0-py3-none-any.whl (15.1 kB) File type Wheel Python version py3 Upload date Hashes View

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