Config Files & Parsing in Python

preview_player
Показать описание
Today we learn how to work with config files in Python. Writing, reading and parsing them.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

Love how frequent you post videos, and how they are practical every time. You have quickly became one of my number one resources when getting stuck on projects at home.

newberryle
Автор

Are you psychic ? I literally started learning about config files and it seemed like you have made this video knowing it. Thank you very much.

ghanteyyy
Автор

Lol, I never known there's a library for configs, i was parsing them manually in every single project i have, this saves alot of time

ahmedahmedeg
Автор

Thanks man got me through the hardest part of my Rainmeter OS customization.

YoungDreTheSauceGod
Автор

Nice! Previously used config parser on my motion detection project to hide my username and password. But this expands further on it’s uses. Thanks!

webslinger
Автор

I've learnt so much Python from you, thank you!

matrixtoogood
Автор

This was a great into into Config files and reinforced with a great example. Thanks!

CDA
Автор

Ha, bro, literally this is what I got assigned to work on today at work and have never done this before. What amazing timing lol.

mattRRgraham
Автор

Can you continue with the C tutorials, they were really interesting.

_M_
Автор

I noticed at 10:06, you copied the line of code where the cursor was at with a keyboard shortcut. I can't seem to find how to do the shortcut, if anybody could tell me what that shortcut is, it would be much appreciated!

bassycounter
Автор

How do you then modify add delete more user with the main program any example?

alonsogonzalez
Автор

i have a config file and declared with some variables in it. I would like to use some variables as a parameter in User defined function. For example : f1(config.VAL_PATH, config.DATASET_NAME) . But when i used like this i am getting Attribute Error. Eventhough config.py is available in same working directory. Pls help me to do in colab.

ashwinkumar
Автор

Quick question brother how can i convert silverbullet config .svb to .py is there a repo in github that convert .svb or .loli to .py thanks alot

joymackey
Автор

For anyone who doesnt see the "number_guessing.ini" file on the left hand side ...
What I did was created a folder on my desktop, dropped the current code file into that folder, then opened the folder via VSCode.

Once the folder was open, select my current code file and then run. Once you run the program, the number_guessing.ini file will appear on the left hand side.


Not sure why? If anyone can add to this or correct me if I am wrong, that would be great! :)

MikeSantos-pvwf
Автор

When reading from a config file, is it possible to validate the data? For example, I might expect a certain value to be between 1000 and 2000. If it’s not, I want to raise an exception.

timmarkhuff
Автор

I usually prefer json instead of conf files.

HTWwpzIuqaObMt
Автор

Very cool :)
Was thinking this might include Cisco network device configs - but still handy!

Thanks for making the font large enough for me to watch on my phone on the way to work <3

sdolo
Автор

Completely lost you after the 5mins. Could you just initially do a SIMPLE write read so we can get the jist of what or whatever can be got out of the file, and show goes where when why and how and then go on to write an RTOS, it really should be KISS Keep It Straight ^ Simple, I have created a data file and cannot get a string from it, python complains wrong format, so will give up and try another way for a 'simple' .ini to save so data. But many thks for you your attempt on this, at least I now know there are possibilities, .

joeking
Автор

Doesn't even support lists bro

Don't make the same mistake i did and just use a different library or JSON

xfadedxshadow
Автор

I hate it so many people use library's AND THEY NEVER WORK AND JUST MAKE IT HARDER I HATE THIS.

reedyea