Skip to main content

Python Library for Tom's Obvious, Minimal Language

Project description


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


- Make sure the library keeps up with the spec as it evolves.


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.dumps(
# 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.7.0
Filename, size File type Python version Upload date Hashes
Filename, size toml-0.7.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page