Skip to main content

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

Release files for toml 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toml 0.9.0
File Size Uploaded
toml-0.9.0.tar.gz 6.5 kB Details

Release files / toml-0.9.0.tar.gz

Download URL toml-0.9.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d803e90b790ca561ae08f77c7b728ca11185d646c769d09d965879c129ef0dee
BLAKE2b-256 checksum
How to use checksums
0cd448756e8b47c7638695646de87529ea7d6feba132b741a8970a17eeeebeed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.10.1

2 release files

0.9.6

2 release files

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

This release

0.9.0 This release

1 release file

0.8.2

1 release file

0.8.1

1 release file

0.8.0

1 release file

0.7.1

1 release file

0.7.0

1 release file

0.6.5

1 release file

0.6.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page