Skip to main content

Tomul is a small library for reading and writing TOML files.

Project description

Tomul

Tomul is a small python library for reading and writing TOML files.

Why?

Tomli-W is the mainstream way of writing TOML in Python. This module is derived from it, and I am grateful for the original.

I think that the rationale presented by Tomli-W for not defaulting to multiline strings is erroneous: a '\r' character can just as easily be emitted by the multiline renderer. This module does that, and simplifies some other aspects of the implementation. It also changes the indent default to two spaces and the line wrap to 128 chars, which is unconventional but my preference.

Additionally, I am trying to minimize my third party dependencies given the rise in software supply chain attacks. Since TOML output is a required part of the development process for this project it made sense to eliminate a dependency here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tomul-0.0.0.tar.gz (40.2 kB view details)

Uploaded Source

File details

Details for the file tomul-0.0.0.tar.gz.

File metadata

  • Download URL: tomul-0.0.0.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for tomul-0.0.0.tar.gz
Algorithm Hash digest
SHA256 d650eca1837de36cb5956deacfd415490bb66df07b347bcb737fb674431b1a61
MD5 ef353eec0d40f40e8918a9079c717204
BLAKE2b-256 3bcdd797bac670c921080881fcb96a5f14e31a2377f659d4ec728b66d78827d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page