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.2.tar.gz (38.4 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.2-cp39-abi3-win_amd64.whl (801.9 kB view details)

Uploaded CPython 3.9+Windows x86-64

pycfgcut-0.3.2-cp39-abi3-manylinux_2_34_x86_64.whl (920.8 kB view details)

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

pycfgcut-0.3.2-cp39-abi3-macosx_11_0_arm64.whl (788.9 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

pycfgcut-0.3.2-cp39-abi3-macosx_10_12_x86_64.whl (846.8 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file pycfgcut-0.3.2.tar.gz.

File metadata

  • Download URL: pycfgcut-0.3.2.tar.gz
  • Upload date:
  • Size: 38.4 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.2.tar.gz
Algorithm Hash digest
SHA256 5cd24f342065916d47b228ad7e970b1bd282567acb1f9254cf23472dbe082c9d
MD5 ee73483c4ff05a286d20364523c4f3d8
BLAKE2b-256 a80d2b9f380ebdfff54af93a5db70c44f4817c7cd72591cfa6eace96ac992cfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycfgcut-0.3.2.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.2-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: pycfgcut-0.3.2-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 801.9 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.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8ed14222b3c35897476405302cd25e97fd55bab6c5e4099e0c8bb40a7963d105
MD5 a4fb15271604691fbbd4e5c17f0de231
BLAKE2b-256 61fe805dc59f6dba90f284e473604891f6c742324230b88edcff5ce0f2ca1e6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycfgcut-0.3.2-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.2-cp39-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycfgcut-0.3.2-cp39-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 5746912406e3377b5176afb9f324087f7409b5c7425e85bfd02873e8b1bc5422
MD5 5319bf1a0739026d8cfb6c924b3d3701
BLAKE2b-256 3beee16e0eabbac699f944e1972293604de0dcda67f6772316463937d941d1f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycfgcut-0.3.2-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.2-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pycfgcut-0.3.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ef9a2fa31ff331c6d012366fc84dd2839bf23540b5fd8c0d060ba36364e0dcb1
MD5 738b206c3d0bbd5453b74be93c47eff2
BLAKE2b-256 e77c2c9f13a8bb17a7e7d59e1fb2c90350f31021bb9edbf5433d82b09ee09faf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycfgcut-0.3.2-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.2-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pycfgcut-0.3.2-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6fa2a9cc69be176e80553a10e399b34018cd6ac0fea0d0d2ca9bd128193d5ef6
MD5 efef6364923bb74b70c03add69a0fd55
BLAKE2b-256 f9f521ec93f61a859789d60f68d4f4542c8402f89fb8b119667555177305cd00

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycfgcut-0.3.2-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