Codeowners parser for Python
Project description
codeowners
Python codeowners parser based on softprops's Rust codeowners 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
# build
poetry build -f wheel
# build and publish
poetry publish --build
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.2.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
codeowners-0.2.0-py3-none-any.whl
(15.1 kB
view hashes)
Close
Hashes for codeowners-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6f43bbaff6f8432af0d3140cc87891a8d036ef587e28232186f9e139ef5ee37 |
|
MD5 | 8c05216b604542bec7c750bfaff06084 |
|
BLAKE2b-256 | e5b1c17d50343a3cf878d34a4a7daee4db96845e9e19c7bb198045bf32adbfd5 |