<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Ship tomli-w with ArcGIS Pro in Python Ideas</title>
    <link>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idi-p/1670297</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;ArcGIS Pro removed the toml library from it's default environment, presumably because tomllib is now part of Python's standard library (as of 3.11) and the toml library is older.&amp;nbsp; Prima facie, this seems fine, except tomllib doesn't have 'write' capabilities.&amp;nbsp; i.e. We effectively lost toml formatting 'write' capabilities when the toml library was removed, which broke some of our code.&amp;nbsp; Moving on from the older toml library, one modern recommended writer is the tomli-w library that pairs with Python's standard library tomllib.&amp;nbsp; Please consider providing a toml writer such as tomli-w.&lt;BR /&gt;&lt;BR /&gt;Ages for reference.&lt;/P&gt;&lt;P&gt;toml (~2013)&lt;/P&gt;&lt;P&gt;tomli-w (~2021)&lt;/P&gt;&lt;P&gt;tomllib (~2022)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for listening.&lt;BR /&gt;&lt;BR /&gt;Tyler&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.6&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 20:52:05 GMT</pubDate>
    <dc:creator>TylerT</dc:creator>
    <dc:date>2025-12-03T20:52:05Z</dc:date>
    <item>
      <title>Ship tomli-w with ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idi-p/1670297</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;ArcGIS Pro removed the toml library from it's default environment, presumably because tomllib is now part of Python's standard library (as of 3.11) and the toml library is older.&amp;nbsp; Prima facie, this seems fine, except tomllib doesn't have 'write' capabilities.&amp;nbsp; i.e. We effectively lost toml formatting 'write' capabilities when the toml library was removed, which broke some of our code.&amp;nbsp; Moving on from the older toml library, one modern recommended writer is the tomli-w library that pairs with Python's standard library tomllib.&amp;nbsp; Please consider providing a toml writer such as tomli-w.&lt;BR /&gt;&lt;BR /&gt;Ages for reference.&lt;/P&gt;&lt;P&gt;toml (~2013)&lt;/P&gt;&lt;P&gt;tomli-w (~2021)&lt;/P&gt;&lt;P&gt;tomllib (~2022)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for listening.&lt;BR /&gt;&lt;BR /&gt;Tyler&lt;/P&gt;&lt;P&gt;ArcGIS Pro 3.6&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 20:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idi-p/1670297</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2025-12-03T20:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ship tomli-w with ArcGIS Pro - Status changed to: In Product Plan</title>
      <link>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idc-p/1670567#M543</link>
      <description>&lt;P&gt;Thanks for the suggestion, and sorry we broke some of your code. We did remove toml / tomli as you mentioned because of tomlib being in the standard library, but missed that it drops write support. toml-w is now up on the Esri channel, and we'll work on adding it to the next release of the software.&lt;BR /&gt;&lt;BR /&gt;Cheers, Shaun&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 17:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idc-p/1670567#M543</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2025-12-04T17:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ship tomli-w with ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idc-p/1676020#M556</link>
      <description>&lt;P&gt;This is a good proposal, and I think it's good to have a toml writer available in the default environment, but I'm curious what you need writing capabilities for?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://discuss.python.org/t/revisiting-adding-a-writer-to-tomllib/33030/7" target="_blank"&gt;https://discuss.python.org/t/revisiting-adding-a-writer-to-tomllib/33030/7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a reason that a writer hasn't been implemented in the standard lib since the toml spec is meant to be written by and read by humans (unlike standard json which is kinda human readable, but primarily for serializing data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For generating templates why not just use f-strings? If you're serializing data you definitely shouldn't be using toml.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 00:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idc-p/1676020#M556</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2026-01-06T00:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ship tomli-w with ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idc-p/1676067#M557</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/607017"&gt;@HaydenWelch&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Good question. We use TOML for simple configuration files for various report inputs.&amp;nbsp; While humans can write our config file from scratch, I usually give them a head start by programmatically kicking out a fresh config toml with sensible defaults based on known report requirements.&amp;nbsp; Ultimately, users open and edit the toml config as they see fit.&amp;nbsp; Using a library to handle the writing ensures the toml output is always syntactically correct.&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 16:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idc-p/1676067#M557</guid>
      <dc:creator>TylerT</dc:creator>
      <dc:date>2026-01-06T16:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ship tomli-w with ArcGIS Pro</title>
      <link>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idc-p/1676115#M558</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/530005"&gt;@TylerT&lt;/a&gt;&amp;nbsp;Makes total sense, I've always just hard coded a bunch of fstrings for that task since I like leaving comments in my configs. We used to use json and just recently switched to toml so if you think the tomli-w is a better way I might start using it when it's added back.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Honestly I feel like it might be worth it to open up a PEP for a tomllib writer that maintains syntax. Tomli-w is only like 300 lines of code, and it seems like the main reason no one is making progress it's because comments matter in toml generation. There's also multiple ways to represent the same structure so you'd need a way for users to be explicit on which style they want.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 16:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-ideas/ship-tomli-w-with-arcgis-pro/idc-p/1676115#M558</guid>
      <dc:creator>HaydenWelch</dc:creator>
      <dc:date>2026-01-06T16:25:31Z</dc:date>
    </item>
  </channel>
</rss>

