Skip to content

Installation

networkconfparse requires Python 3.11 or newer and has no runtime dependencies.

With uv

uv add networkconfparse

With pip

pip install networkconfparse

Verify the installation

import networkconfparse

config = networkconfparse.parse("hostname r1\n")
print([line.text for line in config])
# ['hostname r1']