pytoml is a Python library designed for parsing and writing TOML (Tom's Obvious, Minimal Language) files. It specifically targets version 0.4.0 of the TOML specification. The library provides an interface similar to Python's standard `json` module, offering `load`, `loads`, `dump`, and `dumps` functions. The project is no longer actively maintained, with its last release (0.1.21) in July 2019.
pip install pytomlVerified import paths — ran on the pinned version, not inferred.
Demonstrates loading TOML data from a string and a file-like object, and dumping a Python dictionary to a TOML string. Note that `load` expects a binary-read file object (e.g., opened with 'rb').
Migrate to actively maintained TOML parsers such as `tomli` (standard library in Python 3.11+, read-only) or `tomlkit` (for full round-trip preservation and writing).
Switch to a TOML 1.0.0 compliant parser. `tomli` (for Python 3.6-3.10 and earlier 3.11+, read-only) and `tomlkit` (for full TOML 1.0.0 support, including preserving formatting) are recommended alternatives.
Always open TOML files for reading with `with open('your_file.toml', 'rb') as f: data = toml.load(f)`.pip install pytoml
Ensure the input is a string. If reading from a file, open it in text mode (e.g., `open('file.toml', 'r', encoding='utf-8')`) or decode the bytes if already read (e.g., `data.decode('utf-8')`).Review and correct the TOML syntax in the input data to ensure it is valid according to the TOML 0.4.0 specification.
This is a warning from the library itself due to its age and not an error that stops execution. No direct fix for the user's code, but you can ignore the warning or consider migrating to a more actively maintained TOML library if it's bothersome.
No dependency data recorded yet.