APIsStandard libraryosenvOn this pagemoduleenv Implements basic routines for working with the OS. You can import these APIs from the os package. For example: from os import setenv Functions setenv: Changes or adds an environment variable. getenv: Returns the value of the given environment variable.