#key-value #key #value #line #pair #double

kivi

KIVI | Key-value pair with key and value in separate lines

2 releases (1 stable)

1.0.0 Nov 22, 2024
0.0.0 Nov 21, 2024

#582 in Encoding

Download history 213/week @ 2024-11-18 34/week @ 2024-11-25 20/week @ 2024-12-09

267 downloads per month

MIT/Apache

13KB
145 lines

kivi

Crates.io Code coverage build Linux build Windows build MacOs MIT licensed Apache 2.0 licensed Contributor Covenant

Overview

KIVI format deserializer.

KIVI is a simple text format for storing keys with associated values on separate lines. While it is not as widely known as formats like JSON or INI, it is straightforward and particularly useful in specific contexts where keys or values consist of multiple lines of text.

An example of a configuration file in KIVI format:

host
127.0.0.1

port
54321

timeout
12ms

host, port and timeout are keys; 127.0.0.1, 54321, 12ms are values.

It is quite similar to properties or INI file that store key-value pair in a single line.

In KIVI format, the key and/or value may span over multiple lines. Multiple-line keys or values must be enclosed in quotation marks.

host
127.0.0.1

port
54321

timeout
12ms

"General
description"
"This configuration file
should be placed in the same
directory where the servers
binary is placed"

License

Licensed under either of

at your option.

Contribution

Any contributions to kivi are greatly appreciated. All contributions intentionally submitted for inclusion in the work by you, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps