skip to navigation
skip to content

toml 0.8.2

Python Library for Tom's Obvious, Minimal Language

Latest Version: 0.9.1

Original repository:

See also

Python module which parses and emits TOML.

Released under the MIT license.


See for up to date test results.

Current Version of the Specification


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(
# do stuff with config here
. . .
File Type Py Version Uploaded on Size
toml-0.8.2.tar.gz (md5) Source 2014-04-16 5KB
  • Downloads (All Versions):
  • 454 downloads in the last day
  • 2836 downloads in the last week
  • 11087 downloads in the last month