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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codeowners-0.1.2.tar.gz.
File metadata
- Download URL: codeowners-0.1.2.tar.gz
- Upload date:
- Size: 9.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cbb59899e97d788a46344529eb713bd3b40fc439068c2ad446291a3ea5cc886
|
|
| MD5 |
152d04864a2123669ce715c555167040
|
|
| BLAKE2b-256 |
7f4241721a58be6b31ee72c84dfb5eebabac2a36908f789b92ab31615b489152
|
File details
Details for the file codeowners-0.1.2-cp38-cp38-manylinux1_x86_64.whl.
File metadata
- Download URL: codeowners-0.1.2-cp38-cp38-manylinux1_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aca1f3cfad1d9bc942e09d3f4f7f0d826822cdf5a2aceb39b9ad92e03607c051
|
|
| MD5 |
eb7eb2a188477b8c9fa03ed5b6807520
|
|
| BLAKE2b-256 |
accf8a0494f96d73bd32c006fc10ecc9bbed7ce62423a58aebd2907b2b3e4d76
|
File details
Details for the file codeowners-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl.
File metadata
- Download URL: codeowners-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 438.7 kB
- Tags: CPython 3.8, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d65c77500158de7d50ff57cb96fb3f8d72b82f6f0541cd7e96ff77dfadfe26e
|
|
| MD5 |
920364151480a441a9bbe695b2ec36bc
|
|
| BLAKE2b-256 |
8e1656c91f3e3726e5e555c537cc1486b62d774edfb57d8f8c54460f73c7dff8
|
File details
Details for the file codeowners-0.1.2-cp37-cp37m-manylinux1_x86_64.whl.
File metadata
- Download URL: codeowners-0.1.2-cp37-cp37m-manylinux1_x86_64.whl
- Upload date:
- Size: 988.4 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adea7713021595fc1dfde1d9b0e586c5e0d029552d0130bedf5f9d6241a60a74
|
|
| MD5 |
64c74fdb3849aace306a47d15880bbf5
|
|
| BLAKE2b-256 |
640913dd83122087ff1a3f5f1fbd2cba69134c81dc71476f30056a97b43e179f
|
File details
Details for the file codeowners-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl.
File metadata
- Download URL: codeowners-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 458.7 kB
- Tags: CPython 3.7m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: reqwest/0.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
912894e913bd1f43e3949945c2f757ea00c2717281537d9291f1c5e635b0b516
|
|
| MD5 |
3285b90dbcf9014ebfdd82742a086ed5
|
|
| BLAKE2b-256 |
e79a55d6a0d575bd5e6702f75cf2614f5d6f7b3cf3b45c9a829426cb6dc03b8d
|
File details
Details for the file codeowners-0.1.2-cp36-cp36m-manylinux1_x86_64.whl.
File metadata
- Download URL: codeowners-0.1.2-cp36-cp36m-manylinux1_x86_64.whl
- Upload date:
- Size: 988.6 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea420ca4bfd7e9a89ed92fe9a07135d2782f2bff4401a47b14de760970d7409b
|
|
| MD5 |
4c9713b36d7a4b93b00e174943561293
|
|
| BLAKE2b-256 |
3d01d3e99a32dbc0e4e0a50fcabe6660339fc8cee9e6d964cf1b0530044aaeb3
|
File details
Details for the file codeowners-0.1.2-cp35-cp35m-manylinux1_x86_64.whl.
File metadata
- Download URL: codeowners-0.1.2-cp35-cp35m-manylinux1_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fc68f543e40bf1a0c6c0a42cb6ae2fe5cc7ca74fe46a0f3a530c12c3d61ba57
|
|
| MD5 |
5234b968f56dfd05118230911a2e69d2
|
|
| BLAKE2b-256 |
88275de93c025b708349c070a3b90a3de9e0c3387334ef2a54301a447ef1f8e6
|