Working with config files in Python
HTML-код
- Опубликовано: 1 авг 2024
- In this video we discuss how to work with config files in Python
Complete python course: catalinstefan.com/pythonCourse
For promos and freebies join the group: groups/coursescatalin
ConfigParser: docs.python.org/3/library/con...
As a python noob, I'm confused and frightened about 85% of the time. This video has been a little beacon of hope, thank you, you majestic beast
Man this was so much better than going through the plethora they throw at you in the python documentation.
Damn this was a pretty good video. I'm surprised by the view count your video got. Absolutely underrated. Great work. Do make more videos.
Your video was so easy to understand and straight to the point, thank you so much!
Such an easy to grasp demonstration. Thanks a lot. This helped.
This was very informative and well broken down. thank you!
Well explained and very informative, thanks from Kuwait!
Thank you a lot! You mixed the "file.write(config)" with the "config.write(file)" a bit, but it was all ok! Liked the video. And also good luck, God bless!
2:52 Missed opportunity to put id = 007. Nice video.
excellent teaching methodology
Yeh bro..this is what we need, you got one more subscriber.
Please put some more codes like dis.
Thanks sir
I am beginner modder of games this will help me a lot
Very nice video thank you for sharing knowlage
Worth advice. Thanks it helps me a lot.
This is a great video, thank you!
Thank you! This helped a lot!
О, святая Широ, наконец кто-то нормально объяснил, как записывать изменения в конфиг такого вида!
Nice Video
Helpful Video
Thanks you
very informative
Thank you very much!
one more subscriber is added ..count it. great video thanks
Thank you, it helped me. :)
Super duper explained
Thank you!
That was helpful
Eeeeeew....amazingly easy
thank you sir
so I can only add as string to .ini, and I will need to convert it back to whatever when reading from .ini?
What about updating(changing) a value?
Good tutorial
How to neatly format ini file, I mean all "= is in same vertical alignment?
Can add the section, how to read the properties file from different folder.
Helped
Can we read the config file if its stored in AWS S3 ?
i have the doubts here
now i knw why this video has not even one dislike
loved this video.. subscribing just to supprt! :P
im getting errors while trying to use an if statement from configs
Thanks! Just for reference:
It it returns an empty list then add this in your code:
path = os.path.dirname(os.path.realpath(__file__))
configdir = '/'.join([path,'/config.ini'])
config = configparser.ConfigParser()
config.read(configdir)
thanks a lot
thanks it works