Codeowners parser for Python
Project description
codeowners
Python codeowners parser based on softprops's Rust library and hmarr's Go library.
Why?
To allow Python users to parse codeowners files in Python.
Install
pip install codeowners
Usage
from codeowners import CodeOwners
example_file = """\
# owners for js files
*.js @ghost
# python
*.py user@example.com
# misc
/build/logs/ @dmin
docs/* docs@example.com
"""
owners = CodeOwners(example_file)
assert owners.of("test.js") == [('USERNAME', '@ghost')]
Dev
poetry install
s/test
s/lint
Releasing a New Version
# bump version in pyproject.toml
# update CHANGELOG.md
# commit release commit to GitHub
# build and publish
poetry publish --build
# create a release in the GitHub UI
Project details
Release history Release notifications | RSS feed
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.7.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for codeowners-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0df5cd47299f984ba2e120dc4a0a7be68b528d53016ff39d06e86f85e33c7fc2 |
|
MD5 | 3c42b682de5ca91d56065b5d458db0a8 |
|
BLAKE2b-256 | 92d14091c351ac4de65fa22da912bdb395011e6dc8e630f070348b7b3fdd885d |