Skip to content

Glossary: Building APIs with FastAPI

.env file

Also written: .env, environment variable, environment variables, SECRET_KEY

A file of `NAME=value` lines that holds secrets such as `SECRET_KEY` outside your code. Keep it out of Git, and real environment variables override it.

Where the book teaches it

Related terms

pydantic-settings