Go to file
2017-03-05 21:10:35 +00:00
2016-05-06 15:07:50 -04:00
2017-03-03 22:24:36 +00:00
2016-05-06 15:07:50 -04:00
2017-03-03 22:24:36 +00:00
2016-07-28 01:24:26 -04:00
2016-07-28 01:24:26 -04:00
2017-03-05 21:10:35 +00:00
2016-10-03 17:13:08 -04:00

TOML

Original repository: https://github.com/uiri/toml

See also https://github.com/mojombo/toml

Python module which parses and emits TOML.

Released under the MIT license.

Passes https://github.com/avakar/toml-test (fork of https://github.com/BurntSushi/toml-test )

See http://j.xqz.ca/toml-status for up to date test results.

Current Version of the Specification

https://github.com/mojombo/toml/blob/v0.4.0/README.md

QUICK GUIDE

pip install toml

toml.loads --- takes a string to be parsed as toml and returns the corresponding dictionary

toml.dumps --- takes a dictionary and returns a string which is the contents of the corresponding toml file.

There are other functions which I use to dump and load various fragments of toml but dumps and loads will cover most usage.

Example usage:

import toml

with open("conf.toml") as conffile:
    config = toml.loads(conffile.read())
# do stuff with config here
. . .
Description
RETIRED, further work has moved to Debian project infrastructure
Readme 167 KiB
Languages
Python 99.3%
Shell 0.7%