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.1.tar.gz
(6.6 kB
view hashes)
Built Distribution
codeowners-0.2.1-py3-none-any.whl
(23.0 kB
view hashes)
Close
Hashes for codeowners-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88e553d043ee4c91498a29d912ce97d2656e009b65bbbb879f02d8a09792a391 |
|
MD5 | 8a0f2c67b1412d769d5e4fe00c6ae991 |
|
BLAKE2b-256 | 54b0abc8bbad020e5e8e70ab008b636538b2e226f6f48ddde5d29e88de0e1d84 |