OCaml codecs for Python INI file handling compatible with ConfigParser
1# Basic INI test file - matches Python configparser basic test
2
3[Foo Bar]
4foo=bar1
5
6[Spacey Bar]
7foo = bar2
8
9[Spacey Bar From The Beginning]
10 foo = bar3
11 baz = qwe
12
13[Commented Bar]
14foo: bar4 ; comment
15baz=qwe #another one
16
17[Long Line]
18foo: this line is much, much longer than my editor
19 likes it.
20
21[Section\with$weird%characters[ ]
22
23[Internationalized Stuff]
24foo[bg]: Bulgarian
25foo=Default
26foo[en]=English
27foo[de]=Deutsch
28
29[Spaces]
30key with spaces : value
31another with spaces = splat!
32
33[Types]
34int : 42
35float = 0.44
36boolean = NO
37123 : strange but acceptable
38
39[This One Has A ] In It]
40 forks = spoons