Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"I prefer to think that God is not dead, just drunk" -- John Huston


devel / comp.lang.tcl / ANNOUNCE: conf 1.0

SubjectAuthor
o ANNOUNCE: conf 1.0Олег Н.

1
ANNOUNCE: conf 1.0

<fd9979f3-d89b-4a89-8764-a4c959e430e3n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10101&group=comp.lang.tcl#10101

  copy link   Newsgroups: comp.lang.tcl
X-Received: by 2002:a0c:8107:0:b0:496:a715:dc8c with SMTP id 7-20020a0c8107000000b00496a715dc8cmr59258345qvc.96.1668085013527;
Thu, 10 Nov 2022 04:56:53 -0800 (PST)
X-Received: by 2002:ad4:5b81:0:b0:4bb:837e:5473 with SMTP id
1-20020ad45b81000000b004bb837e5473mr60766557qvp.46.1668085013289; Thu, 10 Nov
2022 04:56:53 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.tcl
Date: Thu, 10 Nov 2022 04:56:53 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=194.190.114.28; posting-account=uOZ-YwoAAAA2iL3syeR4eV868hXjkmW-
NNTP-Posting-Host: 194.190.114.28
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fd9979f3-d89b-4a89-8764-a4c959e430e3n@googlegroups.com>
Subject: ANNOUNCE: conf 1.0
From: oleg.n...@gmail.com (Олег Н.)
Injection-Date: Thu, 10 Nov 2022 12:56:53 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1923
 by: Олег Н. - Thu, 10 Nov 2022 12:56 UTC

Hi, all.

conf package is pure-tcl package for loading a textual configuration data from file, channels and strings. It supports conf syntax with hierarchical and ini-style sections and key-value pairs where value can be string or list.

Source code: https://github.com/lego12239/conf.tcl

## Features

* conf syntax supports of hierarchical sections
* conf syntax support of ini-style sections
* conf syntax support of comments
* conf syntax support of file inclusion
* callback can be used on every key-value assignment to change a default behaviour drastically(you can even use a package only as parser and process a parsed key-value as you want)
* conf is parsed into 2 dicts: one is a parsed conf and another is a conf specification with info about value types. This is very important for working with parsed conf correctly. See Rationale section in the README.
* there are utility routines to help with conf spec checking.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor