loganasherjones / yapconf

Yet Another Python Configuration
http://yapconf.readthedocs.io/en/stable/
MIT License
18 stars 4 forks source link

Support etcd/redis/Kubernetes ConfigMaps #47

Closed loganasherjones closed 6 years ago

loganasherjones commented 6 years ago

Right now, if I have a configuration in etcd/redis/kubernetes config maps, it is my responsibility to load them as dictionaries and then pass them to yapconf for config loading/validation. It would be nice if yapconf did this for me. Something like this:

spec.load_config('ENVIRONMENT', ('etcd', 'http://localhost:2379'))

Same thing for redis/configmaps?

loganasherjones commented 6 years ago

I will not be supporting redis. My decision stems from the fact that in order to unmarshal the redis data, I have to know if its yaml or json since it comes back in their custom format. We don't use it, so I'm not that worried about not supporting it.

loganasherjones commented 6 years ago

This is in master now. Will be released in 0.3.0