Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faq to read/write ini files? #75

Open
vielmetti opened this issue Jan 1, 2020 · 2 comments
Open

faq to read/write ini files? #75

vielmetti opened this issue Jan 1, 2020 · 2 comments
Labels
exploratory Research and opinions are needed format request Request for a new format

Comments

@vielmetti
Copy link

Any consderation of support for .ini files, the somewhat standardized format often used for config files?

I see a Go library https://github.com/go-ini/ini that could be useful, and there's a proof of concept (in Ruby) called dupervisor or dv https://github.com/kigster/dupervisor that provides a 3-way yaml/json/ini tricoder but no filter/manipulation.

@jzelinskie
Copy link
Owner

Interesting! I always had thought that ini was unspecified and thus a parsing nightmare depending on what program or person created the file. This looks doable, but I clearly need to familiarize myself with ini a bit more to understand any corner cases.

If anyone is interested in implementing this or is familiar enough to talk on behalf of ini, I'm all ears.

@vielmetti
Copy link
Author

Yeah, I expect that there's some skew possible due the lack of standards, so I'm perfectly willing to guess that this is arbitrarily hard to get exactly right for every possible version.

A quick look at other code that does this perhaps to help the next person along:

Of these the last, ini-parser, perhaps has the most flexibility in dealing with the existing variation in file types, and https://github.com/rickyah/ini-parser/wiki/Configuring-parser-behavior gives you some idea of the degrees of freedom that have evolved in response.

@jzelinskie jzelinskie added exploratory Research and opinions are needed format request Request for a new format labels Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exploratory Research and opinions are needed format request Request for a new format
Projects
None yet
Development

No branches or pull requests

2 participants