A Python library to parse codeowner files
Project description
codeowners
Python bindings to softprops's Rust codeowners library.
Why?
To allow Python users to parse codeowners files without having to rewrite an existing implementation.
Install
poetry add 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
cargo test
# trying a build in Python
poetry run pyo3-pack develop
poetry run python -c "import codeowners; print(codeowners.CodeOwners)"
Releasing a New Version
# bump version in Cargo.toml
poetry run pyo3-pack build --release
# Note: this will prompt for PyPi creds
poetry run pyo3-pack publish
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.1.2.tar.gz
(9.1 MB
view hashes)
Built Distributions
Close
Hashes for codeowners-0.1.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aca1f3cfad1d9bc942e09d3f4f7f0d826822cdf5a2aceb39b9ad92e03607c051 |
|
MD5 | eb7eb2a188477b8c9fa03ed5b6807520 |
|
BLAKE2b-256 | accf8a0494f96d73bd32c006fc10ecc9bbed7ce62423a58aebd2907b2b3e4d76 |
Close
Hashes for codeowners-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d65c77500158de7d50ff57cb96fb3f8d72b82f6f0541cd7e96ff77dfadfe26e |
|
MD5 | 920364151480a441a9bbe695b2ec36bc |
|
BLAKE2b-256 | 8e1656c91f3e3726e5e555c537cc1486b62d774edfb57d8f8c54460f73c7dff8 |
Close
Hashes for codeowners-0.1.2-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adea7713021595fc1dfde1d9b0e586c5e0d029552d0130bedf5f9d6241a60a74 |
|
MD5 | 64c74fdb3849aace306a47d15880bbf5 |
|
BLAKE2b-256 | 640913dd83122087ff1a3f5f1fbd2cba69134c81dc71476f30056a97b43e179f |
Close
Hashes for codeowners-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912894e913bd1f43e3949945c2f757ea00c2717281537d9291f1c5e635b0b516 |
|
MD5 | 3285b90dbcf9014ebfdd82742a086ed5 |
|
BLAKE2b-256 | e79a55d6a0d575bd5e6702f75cf2614f5d6f7b3cf3b45c9a829426cb6dc03b8d |
Close
Hashes for codeowners-0.1.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea420ca4bfd7e9a89ed92fe9a07135d2782f2bff4401a47b14de760970d7409b |
|
MD5 | 4c9713b36d7a4b93b00e174943561293 |
|
BLAKE2b-256 | 3d01d3e99a32dbc0e4e0a50fcabe6660339fc8cee9e6d964cf1b0530044aaeb3 |
Close
Hashes for codeowners-0.1.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fc68f543e40bf1a0c6c0a42cb6ae2fe5cc7ca74fe46a0f3a530c12c3d61ba57 |
|
MD5 | 5234b968f56dfd05118230911a2e69d2 |
|
BLAKE2b-256 | 88275de93c025b708349c070a3b90a3de9e0c3387334ef2a54301a447ef1f8e6 |