tomllib

Stdlib — SerializationPython 3.11+Beginner

Parse TOML configuration files (read-only, 3.11+)

Quick Info

Documentation
Official Docs
Python Version
3.11+
Dependencies
None — Python Standard Library
Install
Included with Python

Learn by Difficulty

Quick Example

python
# tomllib (Python 3.11+) reads TOML files
print("tomllib parses TOML configuration files")
print('Usage: tomllib.loads(toml_string)')
print("TOML is the format used by pyproject.toml")

The tomllib module is part of Python's standard library. Parse TOML configuration files (read-only, 3.11+).

Try in Playground

Tags

stdlibserializationconfigtoml

Related Items