An Interest In:
Web News this Week
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
December 24, 2019 07:08 pm GMT
Original Link: https://dev.to/prostomarkeloff/python-configs-for-humans-31lm
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To