parse_bool_env

Documentation for eth_defi.tokenised_fund.securitize.backfill.parse_bool_env function.

parse_bool_env(name, *, default=False)

Parse a conventional boolean environment setting.

The migration is operated through environment variables so it can run from the same production wrapper as other vault scripts without another command line parser.

Parameters
  • name (str) – Environment variable to parse.

  • default (bool) – Value used when the variable is absent.

Returns

Parsed boolean value.

Return type

bool