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
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
. . .
Metadata
Release files for toml 0.9.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| toml-0.9.2.tar.gz | 7.6 kB | Details |
Release files / toml-0.9.2.tar.gz
| Download URL | toml-0.9.2.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3953bffe848ad9a6d554114d82f2dcb3e23945e90b4d9addc9956f37f336594
|
|
BLAKE2b-256 checksum How to use checksums |
5cb28a18ced00a43f2cc5261f9ac9f1c94621251400a80db1567177719355177
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |