Skip to content

Commit

Permalink
added str parse
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesstidard committed Mar 2, 2017
1 parent 0e69777 commit e7bb559
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sanic_envconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ def decorator(parser):
return decorator


@EnvConfig.parse(str)
def parse_str(value):
return str(value)


@EnvConfig.parse(bool)
def parse_bool(value):
return value.lower() in ('true', 'yes', '1', 'on')
Expand Down

0 comments on commit e7bb559

Please sign in to comment.