Skip to main content

Python Library for Tom's Obvious, Minimal Language

Project description

Original repository:

See also

Python module which parses and emits TOML.

Released under the MIT license.

Passes (fork of )

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
. . .

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for toml, version 0.9.2
Filename, size & hash File type Python version Upload date
toml-0.9.2.tar.gz (7.6 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page