AI engineering glossary · Python advanced

What is pyproject.toml?

pyproject.toml: The standard configuration file for Python projects, in TOML format. It declares the build system, project metadata and dependencies, and holds settings for tools like pytest and formatters. Modern packaging tools all read it, replacing older setup files.

Level: intermediateTopic: Python advanced

pyproject.toml: an example

A [project] section with name = 'mytool' and dependencies = ['requests'] describes a package for building and installing.

Related terms

More Python advanced terms

Where you learn it

pyproject.toml is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.