Codeowners parser for Python
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 *.py firstname.lastname@example.org # misc /build/logs/ @dmin docs/* email@example.com """ owners = CodeOwners(example_file) assert owners.of("test.js") == [('USERNAME', '@ghost')]
poetry install s/test s/lint
Releasing a New Version
# bump version in pyproject.toml # build poetry build -f wheel # build and publish poetry publish --build
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for codeowners-0.2.1-py3-none-any.whl