Log in or register to vote.

bicop

Read bind-style configuration files

Introduction
============

*bicop* is a python library to process ISC bind-style configuration files.
These are nested structures that look like this::

datasource1 {
server "server1.your.domain";
username "client";
password "secret";
extra {
isolation "full";
};
};

tables {
"users";
"groups";
};

Parsing
=======

Parsing is trivial using the ''parse'' method::

from bicop import parse
parse("/etc/bind/named.conf")

This returns a standard python dictionary with all data read from the
file. Entries in the dictionary can be other dictionaries or lists.

Merging
=======

A common need is to be able to support default values for configurations
or to handle configuration at multiple levels with priorities, for example ...

0