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...

Комментарии • 42

  • @jessepinkmeng1556
    @jessepinkmeng1556 3 года назад +35

    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

  • @daydreamerdreams3320
    @daydreamerdreams3320 4 года назад +3

    Man this was so much better than going through the plethora they throw at you in the python documentation.

  • @ninostephen
    @ninostephen 4 года назад +3

    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.

  • @martekindustries69
    @martekindustries69 3 года назад +3

    Your video was so easy to understand and straight to the point, thank you so much!

  • @UsmanSaadat
    @UsmanSaadat 2 года назад +2

    Such an easy to grasp demonstration. Thanks a lot. This helped.

  • @emekachukwukere7500
    @emekachukwukere7500 2 года назад

    This was very informative and well broken down. thank you!

  • @Yousifalzoubi
    @Yousifalzoubi 3 года назад +1

    Well explained and very informative, thanks from Kuwait!

  • @munteanionut3993
    @munteanionut3993 2 года назад

    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!

  • @open_ckt
    @open_ckt 2 года назад +1

    2:52 Missed opportunity to put id = 007. Nice video.

  • @markruiz9397
    @markruiz9397 3 года назад

    excellent teaching methodology

  • @rajanchoudhary1912
    @rajanchoudhary1912 4 года назад

    Yeh bro..this is what we need, you got one more subscriber.
    Please put some more codes like dis.

  • @sonalbadiyani
    @sonalbadiyani 2 года назад +1

    Thanks sir
    I am beginner modder of games this will help me a lot

  • @matejalukac7469
    @matejalukac7469 3 года назад

    Very nice video thank you for sharing knowlage

  • @eniorubens9712
    @eniorubens9712 2 года назад

    Worth advice. Thanks it helps me a lot.

  • @andersontiban5356
    @andersontiban5356 2 года назад

    This is a great video, thank you!

  • @arvydasgasparavicius7231
    @arvydasgasparavicius7231 2 года назад

    Thank you! This helped a lot!

  • @shuwiku
    @shuwiku Год назад

    О, святая Широ, наконец кто-то нормально объяснил, как записывать изменения в конфиг такого вида!

  • @mohdzeeshan007
    @mohdzeeshan007 2 года назад

    Nice Video
    Helpful Video
    Thanks you

  • @vijeandran
    @vijeandran 2 года назад

    very informative

  • @LukieHZX
    @LukieHZX 4 года назад

    Thank you very much!

  • @mohanpawar6898
    @mohanpawar6898 4 года назад

    one more subscriber is added ..count it. great video thanks

  • @fullStackInKannada
    @fullStackInKannada Год назад

    Thank you, it helped me. :)

  • @Albertrose.24
    @Albertrose.24 2 года назад

    Super duper explained

  • @aanisnoor229
    @aanisnoor229 2 года назад

    Thank you!

  • @CaptainBravo87
    @CaptainBravo87 2 года назад

    That was helpful

  • @ajinkyasonwane4433
    @ajinkyasonwane4433 3 года назад +1

    Eeeeeew....amazingly easy

  • @galk32
    @galk32 Год назад

    thank you sir

  • @timothytim1053
    @timothytim1053 3 года назад

    so I can only add as string to .ini, and I will need to convert it back to whatever when reading from .ini?

  • @AmgadElsaiegh
    @AmgadElsaiegh 2 года назад +2

    What about updating(changing) a value?

  • @gsuresh2u
    @gsuresh2u Год назад

    Good tutorial
    How to neatly format ini file, I mean all "= is in same vertical alignment?

  • @tapalsikandar
    @tapalsikandar Год назад

    Can add the section, how to read the properties file from different folder.

  • @mouneshnhadimani4765
    @mouneshnhadimani4765 2 года назад

    Helped

  • @1hsaniva
    @1hsaniva 2 года назад +1

    Can we read the config file if its stored in AWS S3 ?

    • @Harveysadi
      @Harveysadi 2 года назад

      i have the doubts here

  • @simarjitkaur2864
    @simarjitkaur2864 3 года назад +1

    now i knw why this video has not even one dislike

  • @pratikpakhale3681
    @pratikpakhale3681 4 года назад

    loved this video.. subscribing just to supprt! :P

  • @gdgust2547
    @gdgust2547 2 года назад

    im getting errors while trying to use an if statement from configs

  • @palashmondal9088
    @palashmondal9088 3 года назад

    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)

    • @ng9930
      @ng9930 2 года назад

      thanks a lot

    • @mxblock
      @mxblock 2 месяца назад

      thanks it works