René's URL Explorer Experiment


Title: Python and TOML: Read, Write, and Configure with tomllib – Real Python

Open Graph Title: Python and TOML: Read, Write, and Configure with tomllib – Real Python

Description: Learn how to read, write, and manage TOML files in Python using tomllib and tomli. Parse config data, validate settings, and support pyproject.toml.

Open Graph Description: Learn how to read, write, and manage TOML files in Python using tomllib and tomli. Parse config data, validate settings, and support pyproject.toml.

Mail addresses
?subject=Python article for you&body=Python and TOML: Read, Write, and Configure with tomllib on Real Python https://realpython.com/python-toml/

Opengraph URL: https://realpython.com/python-toml/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
{
  "@context": "http://schema.org",
  "@type": "Article",
  "headline": "Python and TOML: Read, Write, and Configure with tomllib",
  "image": {
    "@type": "ImageObject",
    "url": "https://files.realpython.com/media/TOML-in-Python_Watermarked.1bca2ba00140.jpg",
    "width": 1920,
    "height": 1080
  },
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://realpython.com/python-toml/",
    "lastReviewed": "2025-01-25",
    "author": {
      "@type": "Person",
      "name": "Geir Arne Hjelle",
      "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/gahjelle.470149ee709e.jpg",
      "url": "https://realpython.com/team/gahjelle/",
      "affiliation": {
        "@type": "Organization",
        "@id": "https://realpython.com/#organization",
        "name": "Real Python",
        "url": "https://realpython.com",
        "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
      }
    },
    "reviewedBy": [
      {
        "@type": "Person",
        "name": "Aldren Santos",
        "image": "https://realpython.com/cdn-cgi/image/width=500,height=500,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/Aldren_Santos_Real_Python.6b0861d8b841.png",
        "url": "https://realpython.com/team/asantos/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Brenda Weleschuk",
        "image": "https://realpython.com/cdn-cgi/image/width=320,height=320,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/IMG_3324_1.50b309355fc1.jpg",
        "url": "https://realpython.com/team/bweleschuk/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Bartosz Zaczy\u0144ski",
        "image": "https://realpython.com/cdn-cgi/image/width=1694,height=1694,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/coders_lab_2109368.259b1599fbee.jpg",
        "url": "https://realpython.com/team/bzaczynski/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Kate Finegan",
        "image": "https://realpython.com/cdn-cgi/image/width=400,height=400,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/VZxEtUor_400x400.7169c68e3950.jpg",
        "url": "https://realpython.com/team/kfinegan/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      },
      {
        "@type": "Person",
        "name": "Philipp Acsany",
        "image": "https://realpython.com/cdn-cgi/image/width=400,height=400,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/phi5_2.0e61b4c66f6b.jpg",
        "url": "https://realpython.com/team/pacsany/",
        "affiliation": {
          "@type": "Organization",
          "@id": "https://realpython.com/#organization",
          "name": "Real Python",
          "url": "https://realpython.com",
          "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
        }
      }
    ]
  },
  "datePublished": "2025-01-25T14:00:00+00:00",
  "dateModified": "2025-01-25T14:09:16.418923+00:00",
  "publisher": {
    "@type": "Organization",
    "@id": "https://realpython.com/#organization",
    "name": "Real Python",
    "url": "https://realpython.com",
    "logo": {
      "@type": "ImageObject",
      "url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
      "width": 512,
      "height": 512
    },
    "description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
    "slogan": "Become a Python Expert",
    "email": "info@realpython.com",
    "sameAs": [
      "https://github.com/realpython",
      "https://www.youtube.com/realpython",
      "https://twitter.com/realpython",
      "https://x.com/realpython",
      "https://www.linkedin.com/company/realpython-com/",
      "https://www.facebook.com/learnrealpython",
      "https://www.instagram.com/realpython",
      "https://www.tiktok.com/@realpython.com"
    ]
  },
  "author": {
    "@type": "Person",
    "name": "Geir Arne Hjelle",
    "image": "https://realpython.com/cdn-cgi/image/width=800,height=800,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/gahjelle.470149ee709e.jpg",
    "url": "https://realpython.com/team/gahjelle/",
    "affiliation": {
      "@type": "Organization",
      "@id": "https://realpython.com/#organization",
      "name": "Real Python",
      "url": "https://realpython.com",
      "logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
    }
  },
  "description": "Learn how to read, write, and manage TOML files in Python using tomllib and tomli. Parse config data, validate settings, and support pyproject.toml.",
  "hasPart": {
    "@type": "FAQPage",
    "mainEntity": [
      {
        "@type": "Question",
        "name": "What is TOML in Python?",
        "acceptedAnswer": {
          "@type": "Answer",
          "text": "

TOML—Tom’s Obvious Minimal Language—is a reasonably new configuration file format that the Python community has embraced over the last couple of years. TOML is an essential part of the Python ecosystem.

" } }, { "@type": "Question", "name": "What is a TOML file used for?", "acceptedAnswer": { "@type": "Answer", "text": "

You use a TOML file to store configuration settings for applications, allowing you to change settings without modifying the source code. Many of your favorite tools rely on TOML for configuration, and you’ll use pyproject.toml when you build and distribute your own packages.

" } }, { "@type": "Question", "name": "What is the pyproject.toml file for?", "acceptedAnswer": { "@type": "Answer", "text": "

The pyproject.toml file is used in Python projects to specify build system requirements and configurations for various tools, such as package managers and linters.

" } }, { "@type": "Question", "name": "How do you load a TOML file in Python?", "acceptedAnswer": { "@type": "Answer", "text": "

You load a TOML file in Python using the tomli or tomllib module, which provides functions to parse the file into a Python dictionary.

" } }, { "@type": "Question", "name": "What is the difference between tomli and tomllib?", "acceptedAnswer": { "@type": "Answer", "text": "

tomli is a third-party library for parsing TOML files in Python, while tomllib is its counterpart added to the Python standard library starting from version 3.11.

" } } ] } }

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/TOML-in-Python_Watermarked.1bca2ba00140.jpg
og:imagehttps://files.realpython.com/media/TOML-in-Python_Watermarked.1bca2ba00140.jpg
twitter:creator@realpython
og:typearticle

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/python-toml
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/python-toml
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Fpython-toml%2F
Browse Topicshttps://realpython.com/tutorials/all/
Guided Learning Pathshttps://realpython.com/learning-paths/
Basicshttps://realpython.com/search?level=basics
Intermediatehttps://realpython.com/search?level=intermediate
Advancedhttps://realpython.com/search?level=advanced
aihttps://realpython.com/tutorials/ai/
algorithmshttps://realpython.com/tutorials/algorithms/
apihttps://realpython.com/tutorials/api/
best-practiceshttps://realpython.com/tutorials/best-practices/
careerhttps://realpython.com/tutorials/career/
communityhttps://realpython.com/tutorials/community/
databaseshttps://realpython.com/tutorials/databases/
data-sciencehttps://realpython.com/tutorials/data-science/
data-structureshttps://realpython.com/tutorials/data-structures/
data-vizhttps://realpython.com/tutorials/data-viz/
devopshttps://realpython.com/tutorials/devops/
djangohttps://realpython.com/tutorials/django/
dockerhttps://realpython.com/tutorials/docker/
editorshttps://realpython.com/tutorials/editors/
flaskhttps://realpython.com/tutorials/flask/
front-endhttps://realpython.com/tutorials/front-end/
gamedevhttps://realpython.com/tutorials/gamedev/
guihttps://realpython.com/tutorials/gui/
machine-learninghttps://realpython.com/tutorials/machine-learning/
newshttps://realpython.com/tutorials/news/
numpyhttps://realpython.com/tutorials/numpy/
projectshttps://realpython.com/tutorials/projects/
pythonhttps://realpython.com/tutorials/python/
stdlibhttps://realpython.com/tutorials/stdlib/
testinghttps://realpython.com/tutorials/testing/
toolshttps://realpython.com/tutorials/tools/
web-devhttps://realpython.com/tutorials/web-dev/
web-scrapinghttps://realpython.com/tutorials/web-scraping/
Table of Contentshttps://realpython.com/python-toml#toc
Use TOML as a Configuration Formathttps://realpython.com/python-toml#use-toml-as-a-configuration-format
Configurations and Configuration Fileshttps://realpython.com/python-toml#configurations-and-configuration-files
TOML: Tom’s Obvious Minimal Languagehttps://realpython.com/python-toml#toml-toms-obvious-minimal-language
TOML Schema Validationhttps://realpython.com/python-toml#toml-schema-validation
Get to Know TOML: Key-Value Pairshttps://realpython.com/python-toml#get-to-know-toml-key-value-pairs
Strings, Numbers, and Booleanshttps://realpython.com/python-toml#strings-numbers-and-booleans
Tableshttps://realpython.com/python-toml#tables
Times and Dateshttps://realpython.com/python-toml#times-and-dates
Arrayshttps://realpython.com/python-toml#arrays
Load TOML With Pythonhttps://realpython.com/python-toml#load-toml-with-python
Read TOML Documents With tomli and tomllibhttps://realpython.com/python-toml#read-toml-documents-with-tomli-and-tomllib
Compare TOML Types and Python Typeshttps://realpython.com/python-toml#compare-toml-types-and-python-types
Use Configuration Files in Your Projectshttps://realpython.com/python-toml#use-configuration-files-in-your-projects
Dump Python Objects as TOMLhttps://realpython.com/python-toml#dump-python-objects-as-toml
Convert Dictionaries to TOMLhttps://realpython.com/python-toml#convert-dictionaries-to-toml
Write TOML Documents With tomli_whttps://realpython.com/python-toml#write-toml-documents-with-tomli_w
Create New TOML Documentshttps://realpython.com/python-toml#create-new-toml-documents
Format and Style TOML Documentshttps://realpython.com/python-toml#format-and-style-toml-documents
Create TOML From Scratch With tomlkithttps://realpython.com/python-toml#create-toml-from-scratch-with-tomlkit
Update Existing TOML Documentshttps://realpython.com/python-toml#update-existing-toml-documents
Represent TOML as tomlkit Objectshttps://realpython.com/python-toml#represent-toml-as-tomlkit-objects
Read and Write TOML Losslesslyhttps://realpython.com/python-toml#read-and-write-toml-losslessly
Conclusionhttps://realpython.com/python-toml#conclusion
Frequently Asked Questionshttps://realpython.com/python-toml#frequently-asked-questions
https://realpython.com/feedback/survey/article/python-toml/liked/?from=article-sidebar
https://realpython.com/feedback/survey/article/python-toml/disliked/?from=article-sidebar
Working With TOML and Python 1h 9m · 16 lessons https://realpython.com/courses/working-with-toml-python/
Geir Arne Hjellehttps://realpython.com/python-toml#author
https://realpython.com/python-toml#reader-comments
intermediatehttps://realpython.com/tutorials/intermediate/
data-structureshttps://realpython.com/tutorials/data-structures/
Use TOML as a Configuration Formathttps://realpython.com/python-toml#use-toml-as-a-configuration-format
Configurations and Configuration Fileshttps://realpython.com/python-toml#configurations-and-configuration-files
TOML: Tom’s Obvious Minimal Languagehttps://realpython.com/python-toml#toml-toms-obvious-minimal-language
TOML Schema Validationhttps://realpython.com/python-toml#toml-schema-validation
Get to Know TOML: Key-Value Pairshttps://realpython.com/python-toml#get-to-know-toml-key-value-pairs
Strings, Numbers, and Booleanshttps://realpython.com/python-toml#strings-numbers-and-booleans
Tableshttps://realpython.com/python-toml#tables
Times and Dateshttps://realpython.com/python-toml#times-and-dates
Arrayshttps://realpython.com/python-toml#arrays
Load TOML With Pythonhttps://realpython.com/python-toml#load-toml-with-python
Read TOML Documents With tomli and tomllibhttps://realpython.com/python-toml#read-toml-documents-with-tomli-and-tomllib
Compare TOML Types and Python Typeshttps://realpython.com/python-toml#compare-toml-types-and-python-types
Use Configuration Files in Your Projectshttps://realpython.com/python-toml#use-configuration-files-in-your-projects
Dump Python Objects as TOMLhttps://realpython.com/python-toml#dump-python-objects-as-toml
Convert Dictionaries to TOMLhttps://realpython.com/python-toml#convert-dictionaries-to-toml
Write TOML Documents With tomli_whttps://realpython.com/python-toml#write-toml-documents-with-tomli_w
Create New TOML Documentshttps://realpython.com/python-toml#create-new-toml-documents
Format and Style TOML Documentshttps://realpython.com/python-toml#format-and-style-toml-documents
Create TOML From Scratch With tomlkithttps://realpython.com/python-toml#create-toml-from-scratch-with-tomlkit
Update Existing TOML Documentshttps://realpython.com/python-toml#update-existing-toml-documents
Represent TOML as tomlkit Objectshttps://realpython.com/python-toml#represent-toml-as-tomlkit-objects
Read and Write TOML Losslesslyhttps://realpython.com/python-toml#read-and-write-toml-losslessly
Conclusionhttps://realpython.com/python-toml#conclusion
Frequently Asked Questionshttps://realpython.com/python-toml#frequently-asked-questions
Remove adshttps://realpython.com/account/join/
Working With TOML and Pythonhttps://realpython.com/courses/working-with-toml-python/
Python 3.11 Preview: TOML and tomllibhttps://realpython.com/python311-tomllib/
Get a sample chapter from Python Tricks: The Bookhttps://realpython.com/bonus/python-tricks-sample-pdf/
https://realpython.com/python-toml#use-toml-as-a-configuration-format
Tom Preston-Wernerhttps://tom.preston-werner.com/
Sourcehttps://toml.io/en/v0.1.0
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#configurations-and-configuration-files
configuration filehttps://en.wikipedia.org/wiki/Configuration_file
tic-tac-toe gamehttps://realpython.com/tic-tac-toe-python/
power userhttps://en.wikipedia.org/wiki/Power_user
ConfigParserhttps://docs.python.org/3/library/configparser.html
INI fileshttps://en.wikipedia.org/wiki/INI_file
configuration fileshttps://en.wikipedia.org/wiki/Configuration_file#Unix_and_Unix-like_operating_systems
XMLhttps://realpython.com/python-xml-parser/
JSONhttps://realpython.com/python-json/
YAMLhttps://realpython.com/python-yaml/
Visual Studio Code settingshttps://realpython.com/advanced-visual-studio-code-python/#setting-up-your-terminal
cloud servicehttps://realpython.com/python-boto3-aws-s3/
https://realpython.com/python-toml#toml-toms-obvious-minimal-language
Sourcehttps://toml.io/en/
Blackhttps://black.readthedocs.io/
pytesthttps://docs.pytest.org/
mypyhttps://mypy.readthedocs.io/
isorthttps://pycqa.github.io/isort/
availablehttps://github.com/toml-lang/toml/wiki#implementations
next sectionhttps://realpython.com/python-toml#get-to-know-toml-key-value-pairs
specificationhttps://toml.io/en/v1.0.0
reading INI fileshttps://realpython.com/build-a-python-weather-app-cli/#access-your-api-key-in-your-python-code
null typehttps://realpython.com/null-in-python/
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#toml-schema-validation
Several proposalshttps://github.com/toml-lang/toml/issues/792
structural pattern matchinghttps://realpython.com/python310-new-features/#structural-pattern-matching
Python 3.10https://realpython.com/python310-new-features/
passhttps://realpython.com/python-pass/
pydantichttps://pydantic-docs.helpmanual.io/
type annotationshttps://realpython.com/python-type-checking/
Taplohttps://taplo.tamasfe.dev/
Visual Studio Codehttps://realpython.com/advanced-visual-studio-code-python/
Even Better TOMLhttps://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml
https://realpython.com/python-toml#get-to-know-toml-key-value-pairs
hash tablehttps://realpython.com/python-hash-table/
Stringhttps://realpython.com/python-strings/
Integerhttps://realpython.com/python-numbers/#integers
Floathttps://realpython.com/python-numbers/#floating-point-numbers
Booleanhttps://realpython.com/python-boolean/
date-timehttps://realpython.com/python-datetime/
timehttps://realpython.com/python-time-module/
collectionshttps://realpython.com/python-collections-module/
documentationhttps://toml.io/
encodedhttps://realpython.com/python-encodings-guide/
tableshttps://realpython.com/python-toml#tables
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#strings-numbers-and-booleans
codepoint U+03c0https://unicodeplus.com/U+03C0
raw stringshttps://realpython.com/python-data-types/#raw-strings
not a number (NaN)https://realpython.com/python-math-module/#not-a-number-nan
arbitrarily largehttps://en.wikipedia.org/wiki/Arbitrarily_large
https://realpython.com/python-toml#tables
hash tablehttps://realpython.com/python-hash-table/
dictionaryhttps://realpython.com/python-dicts/
dictionary-likehttps://docs.python.org/3/glossary.html#term-mapping
intentionallyhttps://toml.io/en/v1.0.0#inline-table
trailing commashttps://docs.python.org/3/faq/design.html#why-does-python-allow-commas-at-the-end-of-lists-and-tuples
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#times-and-dates
RFC 3339https://datatracker.ietf.org/doc/html/rfc3339
timestamphttps://realpython.com/python-datetime/
https://realpython.com/python-toml#arrays
tomllibhttps://docs.python.org/3/library/tomllib.html
tomlihttps://pypi.org/project/tomli/
tomli_whttps://pypi.org/project/tomli_w/
tomlkithttps://pypi.org/project/tomlkit/
laterhttps://realpython.com/python-toml#load-toml-with-python
quiz applicationhttps://realpython.com/python-quiz-application/
TOML specificationhttps://toml.io/en/latest
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#load-toml-with-python
https://realpython.com/python-toml#read-toml-documents-with-tomli-and-tomllib
several packageshttps://github.com/toml-lang/toml/wiki
tomlihttps://pypi.org/project/tomli/
tomllibhttps://docs.python.org/3/library/tomllib.html
Python 3.11 Preview: TOML and tomllibhttps://realpython.com/python311-tomllib/
essentially createdhttps://github.com/python/cpython/pull/31498
3.7https://realpython.com/python37-new-features/
3.8https://realpython.com/python38-new-features/
3.9https://realpython.com/python39-new-features/
3.10https://realpython.com/python310-new-features/
piphttps://realpython.com/what-is-pip/
virtual environmenthttps://realpython.com/python-virtual-environments-a-primer/
context managerhttps://realpython.com/python-with-statement/
any issueshttps://realpython.com/why-close-file-python/
Python 3.9: Cool New Features for You to Tryhttps://realpython.com/python39-new-features/#proper-time-zone-support
automate this decisionhttps://github.com/hukkin/tomli#building-a-tomlitomllib-compatibility-layer
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#compare-toml-types-and-python-types
usuallyhttps://realpython.com/python310-new-features/#default-text-encodings
Python floathttps://realpython.com/python-numbers/#floating-point-numbers
Python’s inthttps://realpython.com/python-numbers/#integers
documentationhttps://docs.python.org/3/library/tomllib.html#conversion-table
built inhttps://docs.python.org/3/library/stdtypes.html
datetimehttps://docs.python.org/3/library/datetime.html
laterhttps://realpython.com/python-toml#create-new-toml-documents
Julian dayshttps://en.wikipedia.org/wiki/Julian_day
variantshttps://en.wikipedia.org/wiki/Julian_day#Variants
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#use-configuration-files-in-your-projects
import systemhttps://realpython.com/python-import/#the-python-import-system
pathlibhttps://realpython.com/python-pathlib/
__file__https://docs.python.org/3/reference/import.html#file__
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#dump-python-objects-as-toml
https://realpython.com/python-toml#convert-dictionaries-to-toml
isinstance()https://realpython.com/what-does-isinstance-do-in-python/
recursivelyhttps://realpython.com/python-recursion/
replacehttps://realpython.com/python311-tomllib/#write-toml
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#write-toml-documents-with-tomli_w
tomli_whttps://pypi.org/project/tomli_w/
doesn’t includehttps://realpython.com/python311-tomllib/#write-toml
Remove adshttps://realpython.com/account/join/
https://realpython.com/python-toml#create-new-toml-documents
https://realpython.com/python-toml#format-and-style-toml-documents
PEP 8https://realpython.com/python-pep8/
specificationhttps://toml.io/en/v1.0.0
configuration optionshttps://taplo.tamasfe.dev/configuration/formatter-options.html
Taplohttps://taplo.tamasfe.dev/
version controlhttps://realpython.com/python-git-github-intro/
integratehttps://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml
https://realpython.com/python-toml#create-toml-from-scratch-with-tomlkit
TOML Kithttps://pypi.org/project/tomlkit/
Poetryhttps://realpython.com/dependency-management-python-poetry/
many purposeshttps://peps.python.org/pep-0518/#tool-table
laterhttps://realpython.com/python-toml#represent-toml-as-tomlkit-objects
Laterhttps://realpython.com/python-toml#read-and-write-toml-losslessly
https://realpython.com/python-toml#update-existing-toml-documents
pyproject.tomlhttps://realpython.com/python-pyproject-toml/
https://realpython.com/python-toml#represent-toml-as-tomlkit-objects
inherithttps://realpython.com/inheritance-composition-python/
https://realpython.com/python-toml#read-and-write-toml-losslessly
fluent interfacehttps://en.wikipedia.org/wiki/Fluent_interface
method chaininghttps://en.wikipedia.org/wiki/Method_chaining
https://realpython.com/python-toml#conclusion
https://realpython.com/python-toml#frequently-asked-questions
Get a sample chapter from Python Tricks: The Bookhttps://realpython.com/bonus/python-tricks-sample-pdf/
https://realpython.com/feedback/survey/article/python-toml/liked/?from=article-footer
https://realpython.com/feedback/survey/article/python-toml/disliked/?from=article-footer
Working With TOML and Pythonhttps://realpython.com/courses/working-with-toml-python/
https://realpython.com/team/gahjelle/
» More about Geir Arnehttps://realpython.com/team/gahjelle/
https://realpython.com/team/asantos/
Aldrenhttps://realpython.com/team/asantos/
https://realpython.com/team/bweleschuk/
Brendahttps://realpython.com/team/bweleschuk/
https://realpython.com/team/bzaczynski/
Bartoszhttps://realpython.com/team/bzaczynski/
https://realpython.com/team/kfinegan/
Katehttps://realpython.com/team/kfinegan/
https://realpython.com/team/pacsany/
Philipphttps://realpython.com/team/pacsany/
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-toml
Level Up Your Python Skills »https://realpython.com/account/join/?utm_source=rp_article_footer&utm_content=python-toml
https://realpython.com/feedback/survey/article/python-toml/liked/?from=article-comments
https://realpython.com/feedback/survey/article/python-toml/disliked/?from=article-comments
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Frealpython.com%2Fpython-toml%2F
Twitterhttps://twitter.com/intent/tweet/?text=Interesting%20Python%20article%20on%20%40realpython%3A%20Python%20and%20TOML%3A%20Read%2C%20Write%2C%20and%20Configure%20with%20tomllib&url=https%3A%2F%2Frealpython.com%2Fpython-toml%2F
Blueskyhttps://bsky.app/intent/compose?text=Interesting%20Python%20article%20on%20%40realpython.com%3A%20Python%20and%20TOML%3A%20Read%2C%20Write%2C%20and%20Configure%20with%20tomllib%20https%3A%2F%2Frealpython.com%2Fpython-toml%2F
Facebookhttps://facebook.com/sharer/sharer.php?u=https%3A%2F%2Frealpython.com%2Fpython-toml%2F
Get tips for asking good questionshttps://realpython.com/python-beginner-tips/#tip-9-ask-good-questions
get answers to common questions in our support portalhttps://support.realpython.com
Real Python Community Chathttps://realpython.com/community/
“Office Hours” Live Q&A Sessionhttps://realpython.com/office-hours/
intermediatehttps://realpython.com/tutorials/intermediate/
data-structureshttps://realpython.com/tutorials/data-structures/
Working With TOML and Pythonhttps://realpython.com/courses/working-with-toml-python/?utm_source=realpython&utm_medium=web&utm_campaign=related-course&utm_content=python-toml
How to Manage Python Projects With pyproject.tomlhttps://realpython.com/python-pyproject-toml/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-toml
YAML: The Missing Battery in Pythonhttps://realpython.com/python-yaml/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-toml
Prompt Engineering: A Practical Examplehttps://realpython.com/practical-prompt-engineering/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-toml
Logging in Pythonhttps://realpython.com/python-logging/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-toml
Data Classes in Python (Guide)https://realpython.com/python-data-classes/?utm_source=realpython&utm_medium=web&utm_campaign=related-post&utm_content=python-toml
https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-toml%2F
Continue »https://realpython.com/account/signup/?intent=continue_reading&utm_source=rp&utm_medium=web&utm_campaign=rwn&utm_content=v1&next=%2Fpython-toml%2F
Sign-Inhttps://realpython.com/account/login/?next=/python-toml/
Start Herehttps://realpython.com/start-here/
Learning Resourceshttps://realpython.com/search
Code Mentorhttps://realpython.com/mentor/
Python Referencehttps://realpython.com/ref/
Python Cheat Sheethttps://realpython.com/cheatsheets/python/
Support Centerhttps://support.realpython.com/
Learning Pathshttps://realpython.com/learning-paths/
Quizzes & Exerciseshttps://realpython.com/quizzes/
Browse Topicshttps://realpython.com/tutorials/all/
Live Courseshttps://realpython.com/live/
Bookshttps://realpython.com/books/
Podcasthttps://realpython.com/podcasts/rpp/
Newsletterhttps://realpython.com/newsletter/
Community Chathttps://realpython.com/community/
Office Hourshttps://realpython.com/office-hours/
Learner Storieshttps://realpython.com/learner-stories/
Plans & Pricinghttps://realpython.com/account/join/
Team Planshttps://realpython.com/account/join-team/
For Businesshttps://realpython.com/account/join-team/inquiry/
For Schoolshttps://realpython.com/account/join-team/education-inquiry/
Reviewshttps://realpython.com/learner-stories/
About Ushttps://realpython.com/about/
Teamhttps://realpython.com/team/
Mission & Valueshttps://realpython.com/mission/
Editorial Guidelineshttps://realpython.com/editorial-guidelines/
Sponsorshipshttps://realpython.com/sponsorships/
Careershttps://realpython.workable.com
Press Kithttps://realpython.com/media-kit/
Merchhttps://realpython.com/merch
https://www.youtube.com/realpython
https://x.com/realpython
https://www.linkedin.com/company/realpython-com
https://www.facebook.com/LearnRealPython
https://github.com/realpython/
Privacy Policyhttps://realpython.com/privacy-policy/
Terms of Usehttps://realpython.com/terms/
Securityhttps://realpython.com/security/
Contacthttps://realpython.com/contact/
https://realpython.com/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.