Giter Club home page Giter Club logo

Comments (6)

excid3 avatar excid3 commented on July 17, 2024

Since I moved to Rails, I've really preferred using YAML. Python doesn't have a builtin Yaml parser, but it does have an INI parser. Check out this: http://docs.python.org/library/configparser.html

from logbot.

FiXato avatar FiXato commented on July 17, 2024

Yeah, YAML is a lovely format that's also one of my favourite formats. JSON would come close though.
ConfigParser looks nice, but it only supports strings and ints by the looks of it. Then again, using spaces as separators would work well enough for keeping the list of channels.

from logbot.

excid3 avatar excid3 commented on July 17, 2024

I found this for reading/writing arrays in INIs http://stackoverflow.com/questions/4097139/reading-array-from-config-file-in-python

from logbot.

FiXato avatar FiXato commented on July 17, 2024

Still not as clean as how they would be shown in YAML ;-)
I'll do some prototyping on a separate branch.

from logbot.

FiXato avatar FiXato commented on July 17, 2024

Looks like the project used to have config file support at some point? aaa7200

Any specific reason you didn't include that in your (second?) rewrite?

from logbot.

excid3 avatar excid3 commented on July 17, 2024

Just convenience actually. Was trying to focus on the bot itself rather than this. It felt unnecessary at the time so I didn't readd it.

Glad you found that. I was looking for it earlier but couldn't remember which project that was in. :)

from logbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.