Specification for Python Declarative Language (PyDonfig)

Version: 1.0

Author: Joseph D. Smith

File Extension: .pydl

Purpose: PyDonfig provides a simple, declarative syntax for configuring Python applications.

1. Structure

PyDonfig files use a hierarchical structure consisting of sections and key-value pairs.

Sections: Represented by identifiers followed by a colon (:).

device:

Key-Value Pairs: Defined using the format key > value.

macAddress > "00:00:00:00:00:00"

2. Comments

Comments are prefixed with //. Anything after // is ignored during parsing.

// This is a comment

Example PyDonfig File (config.pydl)


// Device configuration
device:
    macAddress > "00:00:00:00:00:00"
    btAddress > "00:00:00:00:00:00"
// Traceroute blocking
traceroute:
    block > true
            

6. Benefits of PyDonfig

Source Code

View Source