Skip to content

Glossary: Python Beyond the Basics

environment variable

Also written: os.environ, export

A named setting kept by the terminal, read in Python with `os.environ.get()`. It's the safe place to keep an API key, set with `export NAME=value` on macOS/Linux.

Where the book teaches it

Related terms

API key