parse_env#

class parse_env(var, default=None, which='str')[source]#

Simple function to parse environment variables

Parameters:
  • var (str) – name of the environment variable to get

  • default (any) – default value

  • which (str) – what type to convert to (if None, don’t convert)

New in version 2.0.0.