I made a library for loading settings, with friendlier error messages than os.environ or python-decouple

It’s called Walter, and the docs are here: https://walter.leigh.party

The headline feature is that the errors it throws look like the below; errors in Walter list out every setting that is missing or improperly set, rather than just the first one it encounters:

Traceback (most recent call last):
File "<stdin>", line 27, in <module>
File "/Users/leigh/Projects/walter/walter/config.py", line 90, in __exit__
    raise ConfigErrors(errors=self.errors)
walter.config.ConfigErrors: 4 configuration values not set, 0 invalid

SECRET_KEY not set
DEBUG not set
DATABASE_URL not set
SITE_NAME not set

I’d love to hear what you think!

Looks pretty cool! Will definitely check it out.

-Jorge

1 Like