Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 24, 2019 07:08 pm GMT

Python configs for humans.

Hello everybody!

Have you got troubles with configs? I have. And it's problem for me.

I have created simple and awesome library for configs parsing.

You can install it with pip:

pip install betterconf

Simple config:

from betterconf import field, Configclass MyConfig(Config):    my_var = field("my_var")cfg = MyConfig()print(cfg.my_var)

And.. run it!

my_var=1 python our_file.py

Also you can find it at github

Happy coding!


Original Link: https://dev.to/prostomarkeloff/python-configs-for-humans-31lm

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To