Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycfgcut-0.3.1.tar.gz (37.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pycfgcut-0.3.1-cp39-abi3-win_amd64.whl (799.2 kB view details)

Uploaded CPython 3.9+Windows x86-64

pycfgcut-0.3.1-cp39-abi3-manylinux_2_34_x86_64.whl (919.7 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.34+ x86-64

pycfgcut-0.3.1-cp39-abi3-macosx_11_0_arm64.whl (787.5 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

pycfgcut-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl (845.4 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

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

Hashes for pycfgcut-0.3.1.tar.gz
Algorithm Hash digest
SHA256 881c78d01f8256949cb54c1e4fbe5c76114620411d8827bdcd8be55cbb56ef0a
MD5 362f7b8c54d19bf5bd02ef53c802f3fc
BLAKE2b-256 c2269f3fbce11820003a57e071df846b41132e72216394fb4832f1a0d5a09a13

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycfgcut-0.3.1.tar.gz:

Publisher: python-release.yml on bedecarroll/cfgcut

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pycfgcut-0.3.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6a8d09830d04538b952df16379c50564f22e362132c2ed86628a8e20ee42ace0
MD5 d71e9090f79fb3272e635c214a7d85fb
BLAKE2b-256 21ff3658591ffb82eb77ab7075fccc0392b168c6adce717d4bfbac5c0a244b87

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycfgcut-0.3.1-cp39-abi3-win_amd64.whl:

Publisher: python-release.yml on bedecarroll/cfgcut

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pycfgcut-0.3.1-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycfgcut-0.3.1-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 fdd4d85b8d7f12e8865198918ee322d5cd2ba7c0cb5528cce416139d5218cb2b
MD5 545f9e01755688f25a8ff39bbfa736b3
BLAKE2b-256 3e10498c2ca70c6863d060b8f9fd5188532531b6d0d354e63b60202db1ae14d0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pycfgcut-0.3.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pycfgcut-0.3.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61101d51f4140f25e4aa05afed513db2d2f432b13726a87c6b2d96d918d3ade0
MD5 7654d1aebc152199c3c2fef9c8ef4330
BLAKE2b-256 850891674ca1af7897456ff42169b907a5fe3ece9c243a058196bdb05f7eb5db

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pycfgcut-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pycfgcut-0.3.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 98e10bd6ad12618db40093f7b8016f5fc3d3afa1cc82360a027884fd83da566d
MD5 ae1ada9c60b6ce5be797e4b7e4b7f292
BLAKE2b-256 c0fa0eba0b3e32ffb0e0ef4f185d1d604742e9589351299d737a0d6adaad0b5d

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page