Python bindings for cfgcut, the deterministic configuration slicer
Project description
pycfgcut
Python bindings for cfgcut, the deterministic configuration slicer for network engineers.
Installation
pip install pycfgcut
pycfgcut ships prebuilt wheels for CPython 3.9 and newer on Linux and macOS. If a wheel is unavailable for your platform pip falls back to building from source; make sure a compatible Rust toolchain is installed (rustup recommended).
Usage
from pathlib import Path
from pycfgcut import run_cfg
fixture = Path("sample.conf")
result = run_cfg(["interfaces|>>|"], [str(fixture)], anonymize=True, tokens=True)
if result["matched"]:
print(result["stdout"])
Refer to the cfgcut documentation for matcher semantics, anonymisation behaviour, and CLI parity guarantees.
License
pycfgcut is distributed under the terms of the MIT License. See the top-level LICENSE file in this repository for the full text.
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 pycfgcut-0.3.1.tar.gz.
File metadata
- Download URL: pycfgcut-0.3.1.tar.gz
- Upload date:
- Size: 37.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
881c78d01f8256949cb54c1e4fbe5c76114620411d8827bdcd8be55cbb56ef0a
|
|
| MD5 |
362f7b8c54d19bf5bd02ef53c802f3fc
|
|
| BLAKE2b-256 |
c2269f3fbce11820003a57e071df846b41132e72216394fb4832f1a0d5a09a13
|
Provenance
The following attestation bundles were made for pycfgcut-0.3.1.tar.gz:
Publisher:
python-release.yml on bedecarroll/cfgcut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycfgcut-0.3.1.tar.gz -
Subject digest:
881c78d01f8256949cb54c1e4fbe5c76114620411d8827bdcd8be55cbb56ef0a - Sigstore transparency entry: 601743955
- Sigstore integration time:
-
Permalink:
bedecarroll/cfgcut@4e53e58dd6d3f81e514148b0a1789394c693222c -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/bedecarroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@4e53e58dd6d3f81e514148b0a1789394c693222c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pycfgcut-0.3.1-cp39-abi3-win_amd64.whl.
File metadata
- Download URL: pycfgcut-0.3.1-cp39-abi3-win_amd64.whl
- Upload date:
- Size: 799.2 kB
- Tags: CPython 3.9+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a8d09830d04538b952df16379c50564f22e362132c2ed86628a8e20ee42ace0
|
|
| MD5 |
d71e9090f79fb3272e635c214a7d85fb
|
|
| BLAKE2b-256 |
21ff3658591ffb82eb77ab7075fccc0392b168c6adce717d4bfbac5c0a244b87
|
Provenance
The following attestation bundles were made for pycfgcut-0.3.1-cp39-abi3-win_amd64.whl:
Publisher:
python-release.yml on bedecarroll/cfgcut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycfgcut-0.3.1-cp39-abi3-win_amd64.whl -
Subject digest:
6a8d09830d04538b952df16379c50564f22e362132c2ed86628a8e20ee42ace0 - Sigstore transparency entry: 601743979
- Sigstore integration time:
-
Permalink:
bedecarroll/cfgcut@4e53e58dd6d3f81e514148b0a1789394c693222c -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/bedecarroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@4e53e58dd6d3f81e514148b0a1789394c693222c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pycfgcut-0.3.1-cp39-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pycfgcut-0.3.1-cp39-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 919.7 kB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdd4d85b8d7f12e8865198918ee322d5cd2ba7c0cb5528cce416139d5218cb2b
|
|
| MD5 |
545f9e01755688f25a8ff39bbfa736b3
|
|
| BLAKE2b-256 |
3e10498c2ca70c6863d060b8f9fd5188532531b6d0d354e63b60202db1ae14d0
|
Provenance
The following attestation bundles were made for pycfgcut-0.3.1-cp39-abi3-manylinux_2_34_x86_64.whl:
Publisher:
python-release.yml on bedecarroll/cfgcut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycfgcut-0.3.1-cp39-abi3-manylinux_2_34_x86_64.whl -
Subject digest:
fdd4d85b8d7f12e8865198918ee322d5cd2ba7c0cb5528cce416139d5218cb2b - Sigstore transparency entry: 601743985
- Sigstore integration time:
-
Permalink:
bedecarroll/cfgcut@4e53e58dd6d3f81e514148b0a1789394c693222c -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/bedecarroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@4e53e58dd6d3f81e514148b0a1789394c693222c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pycfgcut-0.3.1-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: pycfgcut-0.3.1-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 787.5 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61101d51f4140f25e4aa05afed513db2d2f432b13726a87c6b2d96d918d3ade0
|
|
| MD5 |
7654d1aebc152199c3c2fef9c8ef4330
|
|
| BLAKE2b-256 |
850891674ca1af7897456ff42169b907a5fe3ece9c243a058196bdb05f7eb5db
|
Provenance
The following attestation bundles were made for pycfgcut-0.3.1-cp39-abi3-macosx_11_0_arm64.whl:
Publisher:
python-release.yml on bedecarroll/cfgcut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycfgcut-0.3.1-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
61101d51f4140f25e4aa05afed513db2d2f432b13726a87c6b2d96d918d3ade0 - Sigstore transparency entry: 601743973
- Sigstore integration time:
-
Permalink:
bedecarroll/cfgcut@4e53e58dd6d3f81e514148b0a1789394c693222c -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/bedecarroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@4e53e58dd6d3f81e514148b0a1789394c693222c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pycfgcut-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: pycfgcut-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 845.4 kB
- Tags: CPython 3.9+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98e10bd6ad12618db40093f7b8016f5fc3d3afa1cc82360a027884fd83da566d
|
|
| MD5 |
ae1ada9c60b6ce5be797e4b7e4b7f292
|
|
| BLAKE2b-256 |
c0fa0eba0b3e32ffb0e0ef4f185d1d604742e9589351299d737a0d6adaad0b5d
|
Provenance
The following attestation bundles were made for pycfgcut-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl:
Publisher:
python-release.yml on bedecarroll/cfgcut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycfgcut-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl -
Subject digest:
98e10bd6ad12618db40093f7b8016f5fc3d3afa1cc82360a027884fd83da566d - Sigstore transparency entry: 601743964
- Sigstore integration time:
-
Permalink:
bedecarroll/cfgcut@4e53e58dd6d3f81e514148b0a1789394c693222c -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/bedecarroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-release.yml@4e53e58dd6d3f81e514148b0a1789394c693222c -
Trigger Event:
push
-
Statement type: