Codeowners parser for Python
Project description
codeowners
![pypi](https://pypi-camo.freetls.fastly.net/db0061d542d50d02f25db3d1bca4a73284ea22a5/68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f636f64656f776e6572732e737667)
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 |