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.2.0/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
. . .
```

Metadata

Release files for toml 0.8.1

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.8.1
File Size Uploaded Provenance Actions
toml-0.8.1.tar.gz 5.1 kB Without provenance Details for toml-0.8.1.tar.gz

Release files / toml-0.8.1.tar.gz

Download URL toml-0.8.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b9fa91d6fa70958c47905be17750283692c95ef06fac52671229c461b49d503d
BLAKE2b-256 checksum
How to use checksums
eab9caf57d47c401a37a538b5d27660391b763425d888261af2441c2432fb6be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for toml 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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