Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about tomlkit

Read more about tomlkit

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - tomlkit

tomlkit: nicely formatted array with inline tables

I am trying to use tomlkit 0.8.0 to create a TOML from the following data: data = { 'stuff': [ {'a':1, 'b': 2}, {'c': 3}, {'a': 4}, ] } in this format exactly: stuff ...
test-img

Udi

python

toml

tomlkit

Votes: 0

Answers: 2

Latest Answer

The best I have found so far is somewhat complicated: doc = tomlkit.document() a = tomlkit.array() for x in data['stuff']: t = tomlkit.inline_table() t.update(x) a.add_line(t) a.append(tom...
test-img

Udi

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved