Config Files & Parsing in Python

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 41

  • @newberryle19
    @newberryle19 Рік тому +1

    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.

  • @ahmedahmedeg7941
    @ahmedahmedeg7941 2 роки тому +4

    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

  • @ghanteyyy
    @ghanteyyy 2 роки тому +5

    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.

  • @YoungDreTheSauceGod
    @YoungDreTheSauceGod 9 місяців тому

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

  • @mattRRgraham1996
    @mattRRgraham1996 2 роки тому

    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.

  • @webslinger2011
    @webslinger2011 2 роки тому +3

    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!

    • @youtube.user.1234
      @youtube.user.1234 9 місяців тому

      I believe it would be safer to use a .env file (dotenv) for storing sensitive information like passwords, etc

  • @bassycounter
    @bassycounter Рік тому

    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!

  • @CDA8615
    @CDA8615 Рік тому

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

  • @matrixtoogood5601
    @matrixtoogood5601 2 роки тому +2

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

    • @alien_X1
      @alien_X1 2 роки тому

      Pls search itz shorts time

    • @obed818
      @obed818 2 роки тому

      @@alien_X1 oO

  • @rain-er6537
    @rain-er6537 Рік тому

    Feels good to learn something new!

  • @alonsogonzalez6813
    @alonsogonzalez6813 Рік тому

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

  • @_M_643
    @_M_643 2 роки тому +2

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

  • @ashwinkumar5223
    @ashwinkumar5223 Рік тому

    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.

  • @timmarkhuff
    @timmarkhuff Рік тому

    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.

  • @sdolo222
    @sdolo222 2 роки тому +1

    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

  • @obed818
    @obed818 2 роки тому +1

    Very nice thanks !

  • @joymackey8218
    @joymackey8218 2 роки тому

    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

  • @dominicabah5431
    @dominicabah5431 Рік тому

    Nice one!

  • @jeopardisinggaming8045
    @jeopardisinggaming8045 2 роки тому

    Plz provide intro music link

  • @SimranMaurya-n5t
    @SimranMaurya-n5t Рік тому

    Really helpful

  • @nedamehrvar4929
    @nedamehrvar4929 Рік тому

    Thanks a lot 🎉🎉🎉🎉🎉

  • @alialavizadeh2775
    @alialavizadeh2775 2 роки тому

    that was useful tnx

  • @tcgvsocg1458
    @tcgvsocg1458 2 роки тому

    really good

  • @HTWwpzIuqaObMt
    @HTWwpzIuqaObMt 2 роки тому

    I usually prefer json instead of conf files.

  • @MikeSantos-pv5wf
    @MikeSantos-pv5wf 6 місяців тому

    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! :)

  • @ollywerdyego8589
    @ollywerdyego8589 2 роки тому

    Muito top. Obrigado

  • @joeking5211
    @joeking5211 Рік тому +1

    Completely lost you after the 5mins. Could you just initially do a SIMPLE write read so we can get the jist of what vars/arrays/bits/bytes/tuples/ 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,.

  • @Saimon404
    @Saimon404 2 роки тому

    Teach me cython decompilation python file.

  • @xfadedxshadow
    @xfadedxshadow Рік тому

    Doesn't even support lists bro
    Don't make the same mistake i did and just use a different library or JSON

  • @reedyea1358
    @reedyea1358 Рік тому

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

    • @QuotePilgrim
      @QuotePilgrim 11 місяців тому

      Bro, trust me, if you can't do something with a library, doing it without one isn't going to be any less difficult. The reason people use libraries is because they make things easier. Much easier, in fact.
      Don't just rely on video tutorials, you'll actually learn more by reading the documentation. Look for configparser in the Python docs and read through the page carefully.
      If you're having trouble understanding that page then you haven't learned enough of the basics, so start reading the Python docs from the beginning. And be patient, learning programming takes time.

  • @leizhao1387
    @leizhao1387 Рік тому

    cooooooooooool

  • @philtoa334
    @philtoa334 2 роки тому

    :)

  • @Markandpreston
    @Markandpreston 2 роки тому

    2nd :)

  • @niteshkumar5765
    @niteshkumar5765 2 роки тому

    config file and password in this video
    ua-cam.com/video/9m1AemjZg-M/v-deo.html

  • @mosk53
    @mosk53 2 роки тому

    tooo much talking, bro just show the concept