You are not logged in.

#1 2015-06-25 16:13:15

nbd
Member
Registered: 2014-08-04
Posts: 389

regd - registry-like information storage

regd - registry-like information storage.

Motivation: I have quite a few bash scripts which store their settings and/or current state in configuration and state files. Several scripts communicate their state data between them via temporary files. And several scripts do regular access to DB using passwords stored in encrypted files. In order to make the management and maintenance of all this information simpler - 'regd' Python script was created.

Usage: For using regd, a server first must be started either on a file socket or on IP address:

# Starting a server on a file socket
$ regd --start

# Starting a server on an IP-address
$ regd --start --host some.host --port NNNN

Information is stored in the form of name/value pairs. Each pair can belong to a named section. Information can be kept either permanently on disk or temporarily only for the program session duration.

Name/value pairs are added with commands:

# Adding temporary data
regd --add "SECTION: data name = data value"

# Adding persistent data:
regd --add-pers "SECTION: data name = data value"

# Getting the data:

# regd --get "SECTION: data name"
# regd --get-pers "SECTION: data name"

Manual:

https://github.com/nbdsp/regd/blob/mast … /MANUAL.md

Regd can be installed from AUR repo:

https://aur4.archlinux.org/packages/regd/

Github:

https://github.com/nbdsp/regd


bing different

Offline

Board footer

Powered by FluxBB